Loading dom/base/Document.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -2565,6 +2565,8 @@ Document::~Document() { mDocGroup->GetBrowsingContextGroup()->RemoveDocument(this, mDocGroup); } DocumentOrShadowRoot::Unlink(this); UnlinkOriginalDocumentIfStatic(); UnregisterFromMemoryReportingForDataDocument(); Loading dom/base/DocumentOrShadowRoot.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -62,9 +62,7 @@ void DocumentOrShadowRoot::AddSizeOfExcludingThis(nsWindowSizes& aSizes) const { } DocumentOrShadowRoot::~DocumentOrShadowRoot() { for (StyleSheet* sheet : mStyleSheets) { sheet->ClearAssociatedDocumentOrShadowRoot(); } MOZ_ASSERT(mStyleSheets.IsEmpty()); } StyleSheetList* DocumentOrShadowRoot::StyleSheets() { Loading dom/base/ShadowRoot.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,8 @@ ShadowRoot::~ShadowRoot() { MOZ_DIAGNOSTIC_ASSERT(!OwnerDoc()->IsComposedDocShadowRoot(*this)); DocumentOrShadowRoot::Unlink(this); UnsetFlags(NODE_IS_IN_SHADOW_TREE); // nsINode destructor expects mSubtreeRoot == this. Loading Loading
dom/base/Document.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -2565,6 +2565,8 @@ Document::~Document() { mDocGroup->GetBrowsingContextGroup()->RemoveDocument(this, mDocGroup); } DocumentOrShadowRoot::Unlink(this); UnlinkOriginalDocumentIfStatic(); UnregisterFromMemoryReportingForDataDocument(); Loading
dom/base/DocumentOrShadowRoot.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -62,9 +62,7 @@ void DocumentOrShadowRoot::AddSizeOfExcludingThis(nsWindowSizes& aSizes) const { } DocumentOrShadowRoot::~DocumentOrShadowRoot() { for (StyleSheet* sheet : mStyleSheets) { sheet->ClearAssociatedDocumentOrShadowRoot(); } MOZ_ASSERT(mStyleSheets.IsEmpty()); } StyleSheetList* DocumentOrShadowRoot::StyleSheets() { Loading
dom/base/ShadowRoot.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,8 @@ ShadowRoot::~ShadowRoot() { MOZ_DIAGNOSTIC_ASSERT(!OwnerDoc()->IsComposedDocShadowRoot(*this)); DocumentOrShadowRoot::Unlink(this); UnsetFlags(NODE_IS_IN_SHADOW_TREE); // nsINode destructor expects mSubtreeRoot == this. Loading