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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.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/core/page/scrolling/TopDocumentRootScrollerController.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
index 6ec136ea70cb2bf0599489abf2e11cdc9b08e8bf..bafdeb04ba7cee30f1d2541fbe3056f14b63cb61 100644
--- a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
@@ -71,9 +71,8 @@ IntSize TopDocumentRootScrollerController::rootScrollerVisibleArea() const {
float minimumPageScale =
m_page->pageScaleConstraintsSet().finalConstraints().minimumScale;
- int browserControlsAdjustment =
- ceilf(m_page->frameHost().visualViewport().browserControlsAdjustment() /
- minimumPageScale);
+ int browserControlsAdjustment = ceilf(
+ m_page->visualViewport().browserControlsAdjustment() / minimumPageScale);
return topDocument()->view()->visibleContentSize(ExcludeScrollbars) +
IntSize(0, browserControlsAdjustment);

Powered by Google App Engine
This is Rietveld 408576698