Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: Source/web/RotationViewportAnchor.cpp

Issue 1158673006: Replace various ScrollableArea scroll methods with setScrollPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build fix Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/ResizeViewportAnchor.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/RotationViewportAnchor.cpp
diff --git a/Source/web/RotationViewportAnchor.cpp b/Source/web/RotationViewportAnchor.cpp
index e39438f9f57b7bcd5356ef8f2ad1294e073fc4fb..cd1506a88ba74cfde07172ddbe23f30d6fee58ca 100644
--- a/Source/web/RotationViewportAnchor.cpp
+++ b/Source/web/RotationViewportAnchor.cpp
@@ -160,7 +160,7 @@ void RotationViewportAnchor::restoreToAnchor()
computeOrigins(pinchViewportSize, mainFrameOrigin, pinchViewportOrigin);
- m_rootFrameView->setScrollOffset(mainFrameOrigin);
+ m_rootFrameView->setScrollPosition(mainFrameOrigin, ProgrammaticScroll);
// Set scale before location, since location can be clamped on setting scale.
m_pinchViewport->setScale(newPageScaleFactor);
« no previous file with comments | « Source/web/ResizeViewportAnchor.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698