Closed Bug 1593222 Opened 5 years ago Closed 5 years ago

Split notifying mutation observers code off from `nsNodeUtils`

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)

Details

Attachments

(13 files)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review

"Utils" and "Helper" classes are code-smell. They indicate their naming is imprecise.

Assignee: nobody → mbrodesser

Makes nsNodeUtils::CloneAndAdopt temporarily public. Will be hidden
again in a follow-up commit.

Depends on D51820

The remaining notification methods are moved in a separate commit. The
files are renamed to MutationObservers.* in a follow-up commit.

Depends on D51824

Was necessary to get some build working.

Depends on D51828

Pushed by mbrodesser@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d0b7bb78df70
part 1) Move `nsNodeUtils::IsTemplateElement` to `nsINode`. r=smaug
https://hg.mozilla.org/integration/autoland/rev/d3fdb4d409ee
part 2) Move `nsNodeUtils::GetTargetForAnimation` to `Animation` class. r=smaug
https://hg.mozilla.org/integration/autoland/rev/417b8d40a73a
part 3) Move `nsNodeUtils::GetFirstChildOfTemplateOrNode` to `nsINode`. r=smaug
https://hg.mozilla.org/integration/autoland/rev/6e2acc2b423c
part 4) Move `nsNodeUtils::LastRelease` to `nsINode`. r=smaug
https://hg.mozilla.org/integration/autoland/rev/4f878983dfdb
part 5) Merge `nsNodeUtils::CloneNodeImpl` into its only caller. r=smaug
https://hg.mozilla.org/integration/autoland/rev/f6ff7a362957
part 6) Move `nsINodeUtils::Clone` to `nsINode::Clone`. r=smaug
https://hg.mozilla.org/integration/autoland/rev/06e69dfdd516
part 7) Move `nsNodeUtils::Adopt` to `nsINode`. r=smaug
https://hg.mozilla.org/integration/autoland/rev/a532ea3bcef9
part 8) Move `nsNodeUtils::CloneAndAdopt` to `nsINode`.  r=smaug
https://hg.mozilla.org/integration/autoland/rev/63b6cf4b0e94
part 9) Move non-animation notification methods from `nsNodeUtils` to `MutationObservers`. r=smaug
https://hg.mozilla.org/integration/autoland/rev/99e3838c201b
part 10) Move `Animation*` methods to `MutationObservers`. r=smaug
https://hg.mozilla.org/integration/autoland/rev/e16e70d278de
part 11) Remove superfluous includes in nsNodeUtils.h. r=smaug
https://hg.mozilla.org/integration/autoland/rev/a017e363de4f
part 12) Rename "nsNodeUtils.*" to "MutationObservers.*". r=smaug
https://hg.mozilla.org/integration/autoland/rev/8510e2594e5f
part 13) Include "ReferrerInfo.h" in "nsAttrValue.cpp". r=smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: