Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug

Summary: It uses two node bits that can be better suited for something else.

Reviewers: xidorn, smaug

Bug #: 1444905

Differential Revision: https://phabricator.services.mozilla.com/D709

MozReview-Commit-ID: HIPDtHm6xpM
This commit is contained in:
Emilio Cobos Álvarez
2018-03-12 15:07:42 +01:00
parent 5298a57ff0
commit 923d990216
157 changed files with 50 additions and 2141 deletions

View File

@@ -1712,11 +1712,6 @@ Element::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
if (ShadowRoot* shadowRootParent = ShadowRoot::FromNode(parent)) {
parent = shadowRootParent->GetHost();
}
bool inStyleScope = parent->IsElementInStyleScope();
SetIsElementInStyleScope(inStyleScope);
SetIsElementInStyleScopeFlagOnShadowTree(inStyleScope);
}
// This has to be here, rather than in nsGenericHTMLElement::BindToTree,