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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user