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

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

Issue 2727563004: Change VisualViewport to store a Page instead of a 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 | « third_party/WebKit/Source/core/frame/VisualViewport.h ('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/core/frame/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index c707cc7650298aa42ab43d4b607fa27ef60b31fe..71388154af98c38a5efdfa1ff1c72483ab7d6d24 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -60,8 +60,8 @@
namespace blink {
-VisualViewport::VisualViewport(FrameHost& owner)
- : m_frameHost(&owner),
+VisualViewport::VisualViewport(Page& owner)
+ : m_page(&owner),
m_scale(1),
m_browserControlsAdjustment(0),
m_maxPageScale(-1),
@@ -74,7 +74,7 @@ VisualViewport::~VisualViewport() {
}
DEFINE_TRACE(VisualViewport) {
- visitor->trace(m_frameHost);
+ visitor->trace(m_page);
ScrollableArea::trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698