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

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

Issue 31063004: Have Frame::loader() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/FrameLoaderClientImplTest.cpp ('k') | Source/web/tests/WebFrameTest.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 ce70569d034a840b955cbfe799057e78276438b3..c939f40a91830915e58dbbce1dcd262f69cc484d 100644
--- a/Source/web/tests/ProgrammaticScrollTest.cpp
+++ b/Source/web/tests/ProgrammaticScrollTest.cpp
@@ -59,7 +59,7 @@ TEST_F(ProgrammaticScrollTest, RestoreScrollPositionAndViewStateWithScale)
WebViewImpl* webViewImpl = toWebViewImpl(webView);
FrameView* frameView = webViewImpl->mainFrameImpl()->frameView();
- HistoryController* history = webViewImpl->page()->mainFrame()->loader()->history();
+ HistoryController* history = webViewImpl->page()->mainFrame()->loader().history();
// Scale and scroll the page and save that state. Then scale and scroll again and restore.
webViewImpl->setPageScaleFactor(2.0f, WebPoint(0, 200));
@@ -87,7 +87,7 @@ TEST_F(ProgrammaticScrollTest, RestoreScrollPositionAndViewStateWithoutScale)
WebViewImpl* webViewImpl = toWebViewImpl(webView);
FrameView* frameView = webViewImpl->mainFrameImpl()->frameView();
- HistoryController* history = webViewImpl->page()->mainFrame()->loader()->history();
+ HistoryController* history = webViewImpl->page()->mainFrame()->loader().history();
// Scale and scroll the page and save that state, but then set scale to zero. Then scale and
// scroll again and restore.
« no previous file with comments | « Source/web/tests/FrameLoaderClientImplTest.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698