Bug 1659761 - Restrict the fix of bug 1650488 to desktop only. r=kats

Differential Revision: https://phabricator.services.mozilla.com/D88356
This commit is contained in:
Botond Ballo 2020-08-27 00:01:07 +00:00
Родитель 9be0302277
Коммит 42b8e92f8c
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -805,8 +805,14 @@ void nsDisplayListBuilder::SetIsRelativeToLayoutViewport() {
void nsDisplayListBuilder::UpdateShouldBuildAsyncZoomContainer() {
Document* document = mReferenceFrame->PresContext()->Document();
// On desktop, we want to disable zooming in fullscreen mode (bug 1650488).
// On mobile (and RDM), we need zooming even in fullscreen mode to respect
// mobile viewport sizing (bug 1659761).
bool disableZoomingForFullscreen =
document->Fullscreen() &&
!document->GetPresShell()->UsesMobileViewportSizing();
mBuildAsyncZoomContainer = !mIsRelativeToLayoutViewport &&
!document->Fullscreen() &&
!disableZoomingForFullscreen &&
nsLayoutUtils::AllowZoomingForDocument(document);
}