@@ -3028,7 +3028,7 @@ void Document::DisconnectNodeTree() {
30283028
30293029 while (nsCOMPtr<nsIContent> content = GetLastChild()) {
30303030 nsMutationGuard::DidMutate();
3031- MutationObservers::NotifyContentWillBeRemoved(this, content, nullptr );
3031+ MutationObservers::NotifyContentWillBeRemoved(this, content, {} );
30323032 DisconnectChild(content);
30333033 if (content == mCachedRootElement) {
30343034 // Immediately clear mCachedRootElement, now that it's been removed
@@ -7769,7 +7769,7 @@ void Document::RemoveChildNode(nsIContent* aKid, bool aNotify,
77697769 // Notify early so that we can clear the cached element after notifying,
77707770 // without having to slow down nsINode::RemoveChildNode.
77717771 if (aNotify) {
7772- MutationObservers::NotifyContentWillBeRemoved(this, aKid, aState);
7772+ MutationObservers::NotifyContentWillBeRemoved(this, aKid, { aState} );
77737773 aNotify = false;
77747774 }
77757775
@@ -8760,7 +8760,7 @@ void Document::RemoveCustomContentContainer() {
87608760 container->QueueDevtoolsAnonymousEvent(/* aIsRemove = */ true);
87618761 }
87628762 if (PresShell* ps = GetPresShell()) {
8763- ps->ContentWillBeRemoved(container, nullptr );
8763+ ps->ContentWillBeRemoved(container, {} );
87648764 }
87658765 container->UnbindFromTree();
87668766}
@@ -8807,7 +8807,7 @@ void Document::CreateCustomContentContainerIfNeeded() {
88078807 container->QueueDevtoolsAnonymousEvent(/* aIsRemove = */ false);
88088808 }
88098809 if (PresShell* ps = GetPresShell()) {
8810- ps->ContentAppended(container);
8810+ ps->ContentAppended(container, {} );
88118811 }
88128812 for (auto& anonContent : mAnonymousContents) {
88138813 BindAnonymousContent(*anonContent, *container);
@@ -14784,13 +14784,15 @@ void DevToolsMutationObserver::AttributeChanged(Element* aElement,
1478414784 FireEvent(aElement, u"devtoolsattrmodified"_ns);
1478514785}
1478614786
14787- void DevToolsMutationObserver::ContentAppended(nsIContent* aFirstNewContent) {
14787+ void DevToolsMutationObserver::ContentAppended(nsIContent* aFirstNewContent,
14788+ const ContentAppendInfo& aInfo) {
1478814789 for (nsIContent* c = aFirstNewContent; c; c = c->GetNextSibling()) {
14789- ContentInserted(c);
14790+ ContentInserted(c, aInfo );
1479014791 }
1479114792}
1479214793
14793- void DevToolsMutationObserver::ContentInserted(nsIContent* aChild) {
14794+ void DevToolsMutationObserver::ContentInserted(nsIContent* aChild,
14795+ const ContentInsertInfo&) {
1479414796 FireEvent(aChild, u"devtoolschildinserted"_ns);
1479514797}
1479614798
0 commit comments