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

Unified Diff: Source/web/tests/ProgrammaticScrollTest.cpp

Issue 1163433003: Remove WebViewImpl helper methods for setting scroll offset. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed outerViewport to layoutViewport Created 5 years, 7 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/tests/PinchViewportTest.cpp ('k') | Source/web/tests/TopControlsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/ProgrammaticScrollTest.cpp
diff --git a/Source/web/tests/ProgrammaticScrollTest.cpp b/Source/web/tests/ProgrammaticScrollTest.cpp
index 08320f4dbb7922cce358b94291ddb597f9796d26..6b60ee54906c0a481e6d455afccd98fc0122f82e 100644
--- a/Source/web/tests/ProgrammaticScrollTest.cpp
+++ b/Source/web/tests/ProgrammaticScrollTest.cpp
@@ -61,7 +61,7 @@ TEST_F(ProgrammaticScrollTest, RestoreScrollPositionAndViewStateWithScale)
frame->loader().setLoadType(FrameLoadTypeBackForward);
webViewImpl->setPageScaleFactor(3.0f);
- webViewImpl->setMainFrameScrollOffset(WebPoint(0, 500));
+ webViewImpl->mainFrame()->setScrollOffset(WebSize(0, 500));
frame->view()->setWasScrolledByUser(false);
frame->loader().currentItem()->setPageScaleFactor(2);
frame->loader().currentItem()->setScrollPoint(WebPoint(0, 200));
@@ -90,7 +90,7 @@ TEST_F(ProgrammaticScrollTest, RestoreScrollPositionAndViewStateWithoutScale)
frame->loader().setLoadType(FrameLoadTypeBackForward);
webViewImpl->setPageScaleFactor(3.0f);
- webViewImpl->setMainFrameScrollOffset(WebPoint(0, 500));
+ webViewImpl->mainFrame()->setScrollOffset(WebSize(0, 500));
frame->view()->setWasScrolledByUser(false);
frame->loader().currentItem()->setPageScaleFactor(0);
frame->loader().currentItem()->setScrollPoint(WebPoint(0, 400));
« no previous file with comments | « Source/web/tests/PinchViewportTest.cpp ('k') | Source/web/tests/TopControlsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698