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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2765123002: Removed use of FrameHost in FrameView.cpp (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 0d022a76f584a7bebd1567546385af3fea1f980c..6e8030fca4ea558c1c7cc5a6ddd66c0f999ffc1b 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -50,7 +50,6 @@
#include "core/events/ErrorEvent.h"
#include "core/frame/BrowserControls.h"
#include "core/frame/EventHandlerRegistry.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/LocalFrameClient.h"
#include "core/frame/Location.h"
@@ -2753,8 +2752,8 @@ void FrameView::updateDocumentAnnotatedRegions() const {
}
void FrameView::didAttachDocument() {
- FrameHost* frameHost = m_frame->host();
- DCHECK(frameHost);
+ Page* page = m_frame->page();
+ DCHECK(page);
DCHECK(m_frame->document());
@@ -2767,9 +2766,8 @@ void FrameView::didAttachDocument() {
RootFrameViewport::create(visualViewport, *layoutViewport);
m_viewportScrollableArea = rootFrameViewport;
- frameHost->page()
- .globalRootScrollerController()
- .initializeViewportScrollCallback(*rootFrameViewport);
+ page->globalRootScrollerController().initializeViewportScrollCallback(
+ *rootFrameViewport);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698