зеркало из https://github.com/mozilla/gecko-dev.git
No bug - Remove code that does nothing. r=me
Scoped stylesheets are long gone, and this code just looks at stuff without using it. MozReview-Commit-ID: 9pVxND9i23v
This commit is contained in:
Родитель
7c7499f5e1
Коммит
da9f6c6d11
|
@ -1671,14 +1671,6 @@ Element::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
|||
}
|
||||
}
|
||||
|
||||
// Propagate scoped style sheet tracking bit.
|
||||
if (mParent->IsContent()) {
|
||||
nsIContent* parent = mParent->AsContent();
|
||||
if (ShadowRoot* shadowRootParent = ShadowRoot::FromNode(parent)) {
|
||||
parent = shadowRootParent->GetHost();
|
||||
}
|
||||
}
|
||||
|
||||
// This has to be here, rather than in nsGenericHTMLElement::BindToTree,
|
||||
// because it has to happen after updating the parent pointer, but before
|
||||
// recursively binding the kids.
|
||||
|
|
Загрузка…
Ссылка в новой задаче