Index: third_party/WebKit/Source/core/page/Page.cpp |
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp |
index abd08205db45e514c2ced9ed8c1ce2324f4f468f..b1461b5966c8a148c13dc6411de98a8c034a8389 100644 |
--- a/third_party/WebKit/Source/core/page/Page.cpp |
+++ b/third_party/WebKit/Source/core/page/Page.cpp |
@@ -460,8 +460,8 @@ void Page::didCommitLoad(LocalFrame* frame) { |
// Need to reset visual viewport position here since before commit load we would update the previous history item, |
// Page::didCommitLoad is called after a new history item is created in FrameLoader. |
// fix for crbug.com/642279 |
- frameHost().visualViewport().setScrollPosition(DoublePoint(), |
- ProgrammaticScroll); |
+ frameHost().visualViewport().setScrollOffset(ScrollOffset(), |
+ ProgrammaticScroll); |
m_hostsUsingFeatures.updateMeasurementsAndClear(); |
UserGestureIndicator::clearProcessedUserGestureSinceLoad(); |
} |