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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.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/platform/scroll/ScrollableArea.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
index bfc32cbe252056e06f8b5230497bbc7bc73de5cb..6284c867f468f7260b5e532761c1a86def250747 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
@@ -44,6 +44,7 @@ class DoubleRect;
class FloatPoint;
class GraphicsLayer;
class HostWindow;
+class LayoutBox;
class PlatformWheelEvent;
class ProgrammaticScrollAnimator;
struct ScrollAlignment;
@@ -271,8 +272,11 @@ public:
// Returns the widget associated with this ScrollableArea.
virtual Widget* getWidget() { return nullptr; }
+ virtual LayoutBox* layoutBox() const { return nullptr; }
+
virtual bool isFrameView() const { return false; }
virtual bool isPaintLayerScrollableArea() const { return false; }
+ virtual bool isRootFrameViewport() const { return false; }
// Need to promptly let go of owned animator objects.
EAGERLY_FINALIZE();
@@ -290,8 +294,7 @@ protected:
void resetScrollOriginChanged() { m_scrollOriginChanged = false; }
// Needed to let the animators call scrollPositionChanged.
- friend class ScrollAnimatorBase;
- friend class ProgrammaticScrollAnimator;
+ friend class ScrollAnimatorCompositorCoordinator;
void scrollPositionChanged(const DoublePoint&, ScrollType);
bool horizontalScrollbarNeedsPaintInvalidation() const { return m_horizontalScrollbarNeedsPaintInvalidation; }

Powered by Google App Engine
This is Rietveld 408576698