Bug 1855668 - Trivially fix some orange tests.

MANUAL PUSH: Orange fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez
2023-10-02 14:11:07 +02:00
parent b87657b44f
commit a3c886e9ba
2 changed files with 2 additions and 3 deletions

View File

@@ -1075,10 +1075,11 @@ void nsFrameConstructorState::ConstructBackdropFrameFor(nsIContent* aContent,
return;
}
ComputedStyle* parentStyle = nsLayoutUtils::GetStyleFrame(aFrame)->Style();
RefPtr<ComputedStyle> style =
mPresShell->StyleSet()->ResolvePseudoElementStyle(
*aContent->AsElement(), PseudoStyleType::backdrop, nullptr,
aFrame->Style());
parentStyle);
MOZ_ASSERT(style->StyleDisplay()->mTopLayer == StyleTopLayer::Top);
nsContainerFrame* parentFrame =
GetGeometricParent(*style->StyleDisplay(), nullptr);