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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp

Issue 2718313002: Removed FrameHost::pageScaleConstraintsSet() (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
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 412c44bd00f439e92818011b3310f3a657b1e176..3734203c3253a92bee2bebb643979e8fbf4d3969 100644
--- a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
@@ -70,8 +70,10 @@ IntSize TopDocumentRootScrollerController::rootScrollerVisibleArea() const {
if (!topDocument() || !topDocument()->view())
return IntSize();
- float minimumPageScale =
- m_frameHost->pageScaleConstraintsSet().finalConstraints().minimumScale;
+ float minimumPageScale = m_frameHost->page()
+ .pageScaleConstraintsSet()
+ .finalConstraints()
+ .minimumScale;
int browserControlsAdjustment =
ceilf(m_frameHost->visualViewport().browserControlsAdjustment() /
minimumPageScale);
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698