Bug 1679206 - Use nsPlaceholderFrame::GetRealFrameForPlaceholder in ViewportFrame.cpp r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D97936
This commit is contained in:
longsonr 2020-11-24 22:07:26 +00:00
Родитель f081504642
Коммит b18d8167d2
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -182,13 +182,11 @@ void ViewportFrame::BuildDisplayListForTopLayer(nsDisplayListBuilder* aBuilder,
}
if (nsIFrame* backdropPh =
frame->GetChildList(kBackdropList).FirstChild()) {
MOZ_ASSERT(backdropPh->IsPlaceholderFrame());
MOZ_ASSERT(!backdropPh->GetNextSibling(), "more than one ::backdrop?");
MOZ_ASSERT(backdropPh->HasAnyStateBits(NS_FRAME_FIRST_REFLOW),
"did you intend to reflow ::backdrop placeholders?");
nsIFrame* backdropFrame =
static_cast<nsPlaceholderFrame*>(backdropPh)->GetOutOfFlowFrame();
MOZ_ASSERT(backdropFrame);
nsPlaceholderFrame::GetRealFrameForPlaceholder(backdropPh);
BuildDisplayListForTopLayerFrame(aBuilder, backdropFrame, aList);
if (aIsOpaque) {