Bug 1596768 - Remove GetBindingParent usage in layout. r=smaug

We only use it to escape out of NAC trees for ::selection pseudo-element.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-11-15 16:18:06 +00:00
Родитель a389b627ed
Коммит 06bb7fabca
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -2357,7 +2357,7 @@ bool nsDisplaySelectionOverlay::CreateWebRenderCommands(
static Element* FindElementAncestorForMozSelection(nsIContent* aContent) {
NS_ENSURE_TRUE(aContent, nullptr);
while (aContent && aContent->IsInNativeAnonymousSubtree()) {
aContent = aContent->GetBindingParent();
aContent = aContent->GetClosestNativeAnonymousSubtreeRootParent();
}
NS_ASSERTION(aContent, "aContent isn't in non-anonymous tree?");
while (aContent && !aContent->IsElement()) {