mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 23:37:31 +09:00
parent
af22b5cba5
commit
d9112daf48
7 changed files with 27 additions and 116 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue