diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:36:25 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:36:25 -0400 |
commit | b93fb57514781ea406fb152cf46b502cffd272ff (patch) | |
tree | 7f7c7bd37fc6274e9cdacf8fe2a7ff2f32d64ac0 /dom/base/ShadowRoot.cpp | |
parent | 3508e79b1fe7fc928eed2f3c7bf2d628c53fbf17 (diff) | |
download | UXP-b93fb57514781ea406fb152cf46b502cffd272ff.tar UXP-b93fb57514781ea406fb152cf46b502cffd272ff.tar.gz UXP-b93fb57514781ea406fb152cf46b502cffd272ff.tar.lz UXP-b93fb57514781ea406fb152cf46b502cffd272ff.tar.xz UXP-b93fb57514781ea406fb152cf46b502cffd272ff.zip |
Bug 1426536 - Remove nsContentUtils::IsContentInsertionPoint
Tag #1375
Diffstat (limited to 'dom/base/ShadowRoot.cpp')
-rw-r--r-- | dom/base/ShadowRoot.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/dom/base/ShadowRoot.cpp b/dom/base/ShadowRoot.cpp index 12f35c197..f241dfcd5 100644 --- a/dom/base/ShadowRoot.cpp +++ b/dom/base/ShadowRoot.cpp @@ -533,33 +533,6 @@ ShadowRoot::StyleSheets() return mStyleSheetList; } -/** - * Returns whether the web components pool population algorithm - * on the host would contain |aContent|. This function ignores - * insertion points in the pool, thus should only be used to - * test nodes that have not yet been distributed. - */ -bool -ShadowRoot::IsPooledNode(nsIContent* aContent) const -{ - if (nsContentUtils::IsContentInsertionPoint(aContent)) { - // Insertion points never end up in the pool. - return false; - } - - auto* host = GetHost(); - auto* container = aContent->GetParent(); - if (container == host && !aContent->IsRootOfAnonymousSubtree()) { - // Children of the host will end up in the pool. We check to ensure - // that the content is in the same anonymous tree as the container - // because anonymous content may report its container as the host - // but it may not be in the host's child list. - return true; - } - - return false; -} - void ShadowRoot::AttributeChanged(nsIDocument* aDocument, Element* aElement, |