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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.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/ScrollAnimatorCompositorCoordinator.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
index a7a83e7ac139a7eafc3d1ee727d90a48a7c310e1..d893baf89fa51bc5427e92eda5d0f41a02d8a089 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
@@ -46,7 +46,7 @@ public:
virtual void takeOverCompositorAnimation();
// Updates the scroll position of the animator's ScrollableArea by
// adjustment and update the target of an ongoing scroll offset animation.
- virtual void adjustAnimationAndSetScrollPosition(IntSize adjustment, ScrollType);
+ virtual void adjustAnimationAndSetScrollPosition(const DoublePoint& position, ScrollType);
virtual void updateCompositorAnimations();
virtual ScrollableArea* getScrollableArea() const = 0;
@@ -60,6 +60,8 @@ public:
protected:
explicit ScrollAnimatorCompositorCoordinator();
+ void scrollPositionChanged(const DoublePoint& offset, ScrollType);
+
void adjustImplOnlyScrollOffsetAnimation(const IntSize& adjustment);
IntSize implOnlyAnimationAdjustmentForTesting() { return m_implOnlyAnimationAdjustment; }

Powered by Google App Engine
This is Rietveld 408576698