@@ -3028,7 +3028,7 @@ void Document::DisconnectNodeTree() {
3028
3028
3029
3029
while (nsCOMPtr<nsIContent> content = GetLastChild()) {
3030
3030
nsMutationGuard::DidMutate();
3031
- MutationObservers::NotifyContentWillBeRemoved(this, content, nullptr );
3031
+ MutationObservers::NotifyContentWillBeRemoved(this, content, {} );
3032
3032
DisconnectChild(content);
3033
3033
if (content == mCachedRootElement) {
3034
3034
// Immediately clear mCachedRootElement, now that it's been removed
@@ -7769,7 +7769,7 @@ void Document::RemoveChildNode(nsIContent* aKid, bool aNotify,
7769
7769
// Notify early so that we can clear the cached element after notifying,
7770
7770
// without having to slow down nsINode::RemoveChildNode.
7771
7771
if (aNotify) {
7772
- MutationObservers::NotifyContentWillBeRemoved(this, aKid, aState);
7772
+ MutationObservers::NotifyContentWillBeRemoved(this, aKid, { aState} );
7773
7773
aNotify = false;
7774
7774
}
7775
7775
@@ -8760,7 +8760,7 @@ void Document::RemoveCustomContentContainer() {
8760
8760
container->QueueDevtoolsAnonymousEvent(/* aIsRemove = */ true);
8761
8761
}
8762
8762
if (PresShell* ps = GetPresShell()) {
8763
- ps->ContentWillBeRemoved(container, nullptr );
8763
+ ps->ContentWillBeRemoved(container, {} );
8764
8764
}
8765
8765
container->UnbindFromTree();
8766
8766
}
@@ -8807,7 +8807,7 @@ void Document::CreateCustomContentContainerIfNeeded() {
8807
8807
container->QueueDevtoolsAnonymousEvent(/* aIsRemove = */ false);
8808
8808
}
8809
8809
if (PresShell* ps = GetPresShell()) {
8810
- ps->ContentAppended(container);
8810
+ ps->ContentAppended(container, {} );
8811
8811
}
8812
8812
for (auto& anonContent : mAnonymousContents) {
8813
8813
BindAnonymousContent(*anonContent, *container);
@@ -14784,13 +14784,15 @@ void DevToolsMutationObserver::AttributeChanged(Element* aElement,
14784
14784
FireEvent(aElement, u"devtoolsattrmodified"_ns);
14785
14785
}
14786
14786
14787
- void DevToolsMutationObserver::ContentAppended(nsIContent* aFirstNewContent) {
14787
+ void DevToolsMutationObserver::ContentAppended(nsIContent* aFirstNewContent,
14788
+ const ContentAppendInfo& aInfo) {
14788
14789
for (nsIContent* c = aFirstNewContent; c; c = c->GetNextSibling()) {
14789
- ContentInserted(c);
14790
+ ContentInserted(c, aInfo );
14790
14791
}
14791
14792
}
14792
14793
14793
- void DevToolsMutationObserver::ContentInserted(nsIContent* aChild) {
14794
+ void DevToolsMutationObserver::ContentInserted(nsIContent* aChild,
14795
+ const ContentInsertInfo&) {
14794
14796
FireEvent(aChild, u"devtoolschildinserted"_ns);
14795
14797
}
14796
14798
0 commit comments