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:
Emilio Cobos Álvarez 2018-05-20 18:41:35 +02:00
Родитель 7c7499f5e1
Коммит da9f6c6d11
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -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.