Bug 1831649 - Trigger MobileViewportManager::RefreshViewportSize in the case where nsDocumentViewport boundaries changes but nsView boundaries unchanges. r=tnikkel,botond

Differential Revision: https://phabricator.services.mozilla.com/D208564
This commit is contained in:
Hiroyuki Ikezoe
2024-08-06 07:46:23 +00:00
parent 91c117ff64
commit 687a8e3aa7
4 changed files with 18 additions and 3 deletions

View File

@@ -11558,6 +11558,12 @@ bool PresShell::SetVisualViewportOffset(const nsPoint& aScrollOffset,
void PresShell::ResetVisualViewportOffset() { mVisualViewportOffset.reset(); }
void PresShell::RefreshViewportSize() {
if (mMobileViewportManager) {
mMobileViewportManager->RefreshViewportSize(false);
}
}
void PresShell::ScrollToVisual(const nsPoint& aVisualViewportOffset,
FrameMetrics::ScrollOffsetUpdateType aUpdateType,
ScrollMode aMode) {