зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1917356 - Fix paged mode check.
MANUAL PUSH: Trivial fix + comment CLOSED TREE
This commit is contained in:
Родитель
c493727093
Коммит
d6d6ac70d1
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче