зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a389b627ed
Коммит
06bb7fabca
|
@ -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()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче