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

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

Issue 2713353002: [root layer scrolls] TopDocumentRootScrollerController needs to use layoutViewportScrollableArea (Closed)
Patch Set: rebased Created 3 years, 7 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 | 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/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 307aa1a3ed1a717ed6618e6bc8f337f4dd1423eb..45ca262bd519c570d0be834911ef48027c82b2f6 100644
--- a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
@@ -69,7 +69,11 @@ IntSize TopDocumentRootScrollerController::RootScrollerVisibleArea() const {
ceilf(page_->GetVisualViewport().BrowserControlsAdjustment() /
minimum_page_scale);
- return TopDocument()->View()->VisibleContentSize(kExcludeScrollbars) +
+ return TopDocument()
+ ->View()
+ ->LayoutViewportScrollableArea()
+ ->VisibleContentRect(kExcludeScrollbars)
+ .Size() +
IntSize(0, browser_controls_adjustment);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698