зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9be0302277
Коммит
42b8e92f8c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче