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:
Emilio Cobos Álvarez 2019-11-14 16:41:24 +00:00
Родитель 08c0c80063
Коммит 732547ad1f
1 изменённых файлов: 2 добавлений и 2 удалений

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

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