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

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

Issue 2499853002: Fixed clip resize for document.rootScroller with inertTopControls (Closed)
Patch Set: Fixed typo Created 4 years, 1 month 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/RootScrollerUtil.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.h b/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.h
index dc3a24ffdce9907fb637dead2797eab32c0d9bf7..dc7668132716db8a1f76dea54f38d9269121e5a1 100644
--- a/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.h
+++ b/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.h
@@ -8,11 +8,20 @@
namespace blink {
class Element;
+class PaintLayer;
class ScrollableArea;
namespace RootScrollerUtil {
-ScrollableArea* scrollableAreaFor(const Element&);
+// Returns the ScrollableArea that's associated with the root scroller element.
+// For the <html> element this will be the FrameView or root
+// PaintLayerScrollableArea.
+ScrollableArea* scrollableAreaForRootScroller(const Element&);
+
+// Returns the PaintLayer that'll be used as the root scrolling layer. For the
+// <html> element, this returns the LayoutView's PaintLayer rather than
+// <html>'s since scrolling is handled by LayoutView.
+PaintLayer* paintLayerForRootScroller(const Element*);
} // namespace RootScrollerUtil

Powered by Google App Engine
This is Rietveld 408576698