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

Unified Diff: Source/web/tests/TouchActionTest.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/tests/TouchActionTest.cpp
diff --git a/Source/web/tests/TouchActionTest.cpp b/Source/web/tests/TouchActionTest.cpp
index a7d15ccb36be0fd4c8d05c3f9a7b1583e5406d1f..a294ee17bb557580952e6da7a39c13466a4037d8 100644
--- a/Source/web/tests/TouchActionTest.cpp
+++ b/Source/web/tests/TouchActionTest.cpp
@@ -186,7 +186,7 @@ WebView* TouchActionTest::setupTest(std::string file, TouchActionTrackingWebView
// Scroll to verify the code properly transforms windows to client co-ords.
const int kScrollOffset = 100;
RefPtrWillBeRawPtr<Document> document = static_cast<PassRefPtrWillBeRawPtr<Document>>(webView->mainFrame()->document());
- document->frame()->view()->setScrollOffset(IntPoint(0, kScrollOffset));
+ document->frame()->view()->setScrollPosition(IntPoint(0, kScrollOffset), ProgrammaticScroll);
return webView;
}
« Source/platform/scroll/ScrollableArea.cpp ('K') | « Source/web/tests/TopControlsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698