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

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: Rebase 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
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);

Powered by Google App Engine
This is Rietveld 408576698