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 /layout | |
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 'layout')
-rw-r--r-- | layout/base/RestyleManager.cpp | 4 | ||||
-rw-r--r-- | layout/base/nsCSSFrameConstructor.cpp | 2 | ||||
-rw-r--r-- | layout/base/nsFrameManager.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/layout/base/RestyleManager.cpp b/layout/base/RestyleManager.cpp index 6520fe1f6..5c599e1ef 100644 --- a/layout/base/RestyleManager.cpp +++ b/layout/base/RestyleManager.cpp @@ -3489,7 +3489,7 @@ ElementRestyler::RestyleUndisplayedNodes(nsRestyleHint aChildRestyleHint, // not have a frame and would not otherwise be pushed as an ancestor. nsIContent* parent = undisplayed->mContent->GetParent(); TreeMatchContext::AutoAncestorPusher insertionPointPusher(mTreeMatchContext); - if (parent && nsContentUtils::IsContentInsertionPoint(parent)) { + if (parent && parent->IsActiveChildrenElement()) { insertionPointPusher.PushAncestorAndStyleScope(parent); } @@ -3715,7 +3715,7 @@ ElementRestyler::RestyleContentChildren(nsIFrame* aParent, // nsPageFrame that does not have a content. nsIContent* parent = child->GetContent() ? child->GetContent()->GetParent() : nullptr; TreeMatchContext::AutoAncestorPusher insertionPointPusher(mTreeMatchContext); - if (parent && nsContentUtils::IsContentInsertionPoint(parent)) { + if (parent && parent->IsActiveChildrenElement()) { insertionPointPusher.PushAncestorAndStyleScope(parent); } diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index c7312dafb..fc458b5eb 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -3821,7 +3821,7 @@ nsCSSFrameConstructor::ConstructFrameFromItemInternal(FrameConstructionItem& aIt // AutoDisplayContentsAncestorPusher above.) TreeMatchContext::AutoAncestorPusher insertionPointPusher(aState.mTreeMatchContext); - if (adcp.IsEmpty() && parent && nsContentUtils::IsContentInsertionPoint(parent)) { + if (adcp.IsEmpty() && parent && parent->IsActiveChildrenElement()) { if (aState.mTreeMatchContext.mAncestorFilter.HasFilter()) { insertionPointPusher.PushAncestorAndStyleScope(parent); } else { diff --git a/layout/base/nsFrameManager.cpp b/layout/base/nsFrameManager.cpp index ce5c60bbc..be8cd7147 100644 --- a/layout/base/nsFrameManager.cpp +++ b/layout/base/nsFrameManager.cpp @@ -611,7 +611,7 @@ nsFrameManagerBase::UndisplayedMap::GetApplicableParent(nsIContent* aParent) // be a <xbl:children> element) but the parent in the frame tree would be the // insertion parent (parent of the <xbl:children> element). Here the children // elements are normalized to the insertion parent to correct for the mismatch. - if (aParent && nsContentUtils::IsContentInsertionPoint(aParent)) { + if (aParent && aParent->IsActiveChildrenElement()) { return aParent->GetParent(); } |