mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 06:09:19 +00:00
Bug 1868048 - StyleSheetList doesn't need to observe all the mutations, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D195372
This commit is contained in:
parent
ef35fa7374
commit
bdd826233d
@ -34,6 +34,7 @@ void StyleSheetList::NodeWillBeDestroyed(nsINode* aNode) {
|
||||
|
||||
StyleSheetList::StyleSheetList(DocumentOrShadowRoot& aScope)
|
||||
: mDocumentOrShadowRoot(&aScope) {
|
||||
SetEnabledCallbacks(nsIMutationObserver::kNodeWillBeDestroyed);
|
||||
mDocumentOrShadowRoot->AsNode().AddMutationObserver(this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user