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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.h

Issue 2728873002: Remove VisualViewport::frameHost() (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 | « no previous file | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/VisualViewport.h
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.h b/third_party/WebKit/Source/core/frame/VisualViewport.h
index de0a59abf9cf2365649280d492a5d96aafd1acb8..582e0159a0c26e59075a400eef153a2842fb67e4 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.h
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.h
@@ -31,8 +31,10 @@
#ifndef VisualViewport_h
#define VisualViewport_h
+#include <memory>
#include "core/CoreExport.h"
#include "core/events/Event.h"
+#include "core/frame/FrameHost.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/FloatSize.h"
#include "platform/geometry/IntSize.h"
@@ -40,7 +42,6 @@
#include "platform/scroll/ScrollableArea.h"
#include "public/platform/WebScrollbar.h"
#include "public/platform/WebSize.h"
-#include <memory>
namespace blink {
class WebScrollbarLayer;
@@ -48,12 +49,12 @@ class WebScrollbarLayer;
namespace blink {
-class FrameHost;
class GraphicsContext;
class GraphicsLayer;
class IntRect;
class IntSize;
class LocalFrame;
+class Page;
// Represents the visual viewport the user is currently seeing the page through.
// This class corresponds to the InnerViewport on the compositor. It is a
@@ -261,9 +262,9 @@ class CORE_EXPORT VisualViewport final
LocalFrame* mainFrame() const;
- FrameHost& frameHost() const {
- ASSERT(m_frameHost);
- return *m_frameHost;
+ Page& page() const {
+ DCHECK(m_frameHost);
+ return m_frameHost->page();
}
Member<FrameHost> m_frameHost;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698