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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

Issue 2123053002: Improve scroll anchoring's interactions with the visual viewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix broken tests Created 4 years, 5 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/paint/PaintLayerScrollableArea.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index 7a8bb6d012a45c8beabec769e63c4ec55db16687..2aa1d6a89fc471574b4b93481eb73bcc7aed0f9e 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -393,6 +393,7 @@ public:
IntRect resizerCornerRect(const IntRect&, ResizerHitTestType) const;
+ // TODO(ymalik): Remove box() and update callers to use layoutBox() instead.
LayoutBox& box() const;
PaintLayer* layer() const;
@@ -408,6 +409,8 @@ public:
ScrollAnchor& scrollAnchor() { return m_scrollAnchor; }
bool isPaintLayerScrollableArea() const override { return true; }
+ LayoutBox* layoutBox() const override { return &box(); }
+
bool shouldRebuildHorizontalScrollbarLayer() const { return m_rebuildHorizontalScrollbarLayer; }
bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalScrollbarLayer; }
void resetRebuildScrollbarLayerFlags();

Powered by Google App Engine
This is Rietveld 408576698