Bug 1281745, bug 1453206: Add a comment pointing out why shadow root checks are needed. r=me

As requested by Blake in bug 1281745.

DONTBUILD, because comment-only.
MozReview-Commit-ID: 1LX4ZlAedOh
This commit is contained in:
Emilio Cobos Álvarez 2018-04-14 12:04:08 +02:00
Родитель 9083c33e83
Коммит 2cd5aa6eeb
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -176,6 +176,8 @@ nsIContent::IsActiveChildrenElement() const
return false;
}
// We reuse the binding parent machinery for Shadow DOM too, so prevent that
// from getting us confused in this case.
return !bindingParent->GetShadowRoot();
}
@ -197,6 +199,8 @@ nsIContent::IsInAnonymousSubtree() const
return false;
}
// We reuse the binding parent machinery for Shadow DOM too, so prevent that
// from getting us confused in this case.
return !bindingParent->GetShadowRoot();
}