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

Unified Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 2730573003: Moved FrameHost::m_visualViewport to Page (Closed)
Patch Set: Fixed some compile errors on mac and android 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
Index: third_party/WebKit/Source/web/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index 27a732dcdb5f5a14140b2367805ea2b0c042b205..8df99831d740e7844baf5c11f3138c81bbc0ba0c 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -411,9 +411,9 @@ void InspectorOverlay::rebuildOverlayPage() {
IntRect visibleRectInDocument =
view->getScrollableArea()->visibleContentRect();
- IntSize viewportSize = frame->host()->visualViewport().size();
+ IntSize viewportSize = frame->page()->visualViewport().size();
overlayMainFrame()->view()->resize(viewportSize);
- overlayPage()->frameHost().visualViewport().setSize(viewportSize);
+ overlayPage()->visualViewport().setSize(viewportSize);
overlayMainFrame()->setPageZoomFactor(windowToViewportScale());
reset(viewportSize, visibleRectInDocument.location());
@@ -596,7 +596,7 @@ void InspectorOverlay::reset(const IntSize& viewportSize,
"deviceScaleFactor",
m_frameImpl->frame()->page()->deviceScaleFactorDeprecated());
resetData->setDouble("pageScaleFactor",
- m_frameImpl->frame()->host()->visualViewport().scale());
+ m_frameImpl->frame()->page()->visualViewport().scale());
IntRect viewportInScreen =
m_frameImpl->frame()->page()->chromeClient().viewportToScreen(
« no previous file with comments | « third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp ('k') | third_party/WebKit/Source/web/PageOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698