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

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

Issue 2623213002: Expand PaintLayer clip to account for hidden URL bar with document.rootScroller (Closed)
Patch Set: Rebase Created 3 years, 11 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.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h
index 58cc5e76d27aec242552e9c05f23a88df192714e..d51a7096f48e68a4574a96e2f1d259e45b72ce1f 100644
--- a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h
+++ b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h
@@ -9,6 +9,7 @@
#include "core/page/scrolling/RootScrollerController.h"
#include "platform/geometry/IntSize.h"
#include "platform/heap/Handle.h"
+#include "platform/scroll/ScrollTypes.h"
namespace blink {
@@ -74,8 +75,11 @@ class CORE_EXPORT TopDocumentRootScrollerController
ScrollableArea* rootScrollerArea() const;
// Returns the size we should use for the root scroller, accounting for top
- // controls adjustment and using the root FrameView.
- IntSize rootScrollerVisibleArea() const;
+ // controls adjustment and using the root FrameView rect.
+ IntRect visibleContentRect(IncludeScrollbarsInRect) const;
+
+ // Returns whether node is the root scroller or has it as a descendant.
+ bool isRootScrollerAncestor(const Node&) const;
private:
TopDocumentRootScrollerController(FrameHost&);

Powered by Google App Engine
This is Rietveld 408576698