Bug 1917356 - Fix paged mode check.

MANUAL PUSH: Trivial fix + comment CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2024-09-18 17:30:46 +02:00
Родитель c493727093
Коммит d6d6ac70d1
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -16841,7 +16841,10 @@ static void UpdateEffectsOnBrowsingContext(BrowsingContext* aBc,
return EffectsInfo::FullyHidden();
}
Maybe<nsRect> visibleRect = subDocFrame->GetVisibleRect();
if (subDocFrame->PresContext()->IsPrintingOrPrintPreview()) {
// If we're paginated, we the display list rect might not be reasonable,
// because it is the one from the last display item painted. We assume the
// frame is fully visible, lacking something better.
if (subDocFrame->PresContext()->IsPaginated()) {
visibleRect = Some(subDocFrame->GetDestRect());
}
if (!visibleRect) {