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

Unified Diff: third_party/WebKit/Source/web/tests/RootScrollerTest.cpp

Issue 2737703002: Remove FrameHost::browserControls() (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/RootScrollerTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/RootScrollerTest.cpp b/third_party/WebKit/Source/web/tests/RootScrollerTest.cpp
index 459e94cb72b8170d0310c29074478d0a977d9581..d8643227ac5560cd0f46a438382a2a8e821f5edc 100644
--- a/third_party/WebKit/Source/web/tests/RootScrollerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/RootScrollerTest.cpp
@@ -98,9 +98,9 @@ class RootScrollerTest : public ::testing::Test {
WebViewImpl* webViewImpl() const { return m_helper.webView(); }
- FrameHost& frameHost() const {
- return m_helper.webView()->page()->frameHost();
- }
+ Page& page() const { return *m_helper.webView()->page(); }
+
+ FrameHost& frameHost() const { return page().frameHost(); }
LocalFrame* mainFrame() const {
return webViewImpl()->mainFrameImpl()->frame();
@@ -116,9 +116,7 @@ class RootScrollerTest : public ::testing::Test {
return frameHost().visualViewport();
}
- BrowserControls& browserControls() const {
- return frameHost().browserControls();
- }
+ BrowserControls& browserControls() const { return page().browserControls(); }
Node* effectiveRootScroller(Document* doc) const {
return &doc->rootScrollerController().effectiveRootScroller();
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698