зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1596463 - Remove GetBindingParent usage in the XML pretty printer. r=smaug
It was already checking shadow trees as well, so trivial change. Differential Revision: https://phabricator.services.mozilla.com/D53035 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
08c0c80063
Коммит
732547ad1f
|
@ -113,8 +113,8 @@ void nsXMLPrettyPrinter::MaybeUnhook(nsIContent* aContent) {
|
|||
// If it is not null but in the shadow tree or the <scrollbar> NACs,
|
||||
// the change was in the generated content, and it should be ignored.
|
||||
bool isGeneratedContent =
|
||||
!aContent ? false
|
||||
: aContent->GetBindingParent() || aContent->IsInShadowTree();
|
||||
aContent &&
|
||||
(aContent->IsInNativeAnonymousSubtree() || aContent->IsInShadowTree());
|
||||
|
||||
if (!isGeneratedContent && !mUnhookPending) {
|
||||
// Can't blindly to mUnhookPending after AddScriptRunner,
|
||||
|
|
Загрузка…
Ссылка в новой задаче