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 ab8a3283dd44f8ffe867f9e323ce07c38f29996d..d86ece1103a3f24dc760549f799999c57c1e5d3c 100644 |
--- a/third_party/WebKit/Source/core/page/Page.cpp |
+++ b/third_party/WebKit/Source/core/page/Page.cpp |
@@ -460,9 +460,10 @@ 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. See crbug.com/642279 |
- frameHost().visualViewport().setScrollPosition(DoublePoint(), |
- ProgrammaticScroll); |
+ // after a new history item is created in FrameLoader. |
+ // See crbug.com/642279 |
+ frameHost().visualViewport().setScrollOffset(ScrollOffset(), |
+ ProgrammaticScroll); |
m_hostsUsingFeatures.updateMeasurementsAndClear(); |
UserGestureIndicator::clearProcessedUserGestureSinceLoad(); |
} |