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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h

Issue 1648293003: Fix smooth scroll jump when switching scroll handling between MT and CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated layout test Created 4 years, 10 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 2f3892743f3102ab58a0e4825a12088469fd58cd..f7cbe74170bb273ebc8562abebb2610ff0fc9acf 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
@@ -27,6 +27,8 @@ public:
bool hasAnimationThatRequiresService() const;
+ virtual bool hasRunningAnimation() const { return false; }
+
virtual void resetAnimationState();
virtual void cancelAnimation();
@@ -47,7 +49,7 @@ protected:
void abortAnimation();
void compositorAnimationFinished(int groupId);
- void reattachCompositorPlayerIfNeeded(WebCompositorAnimationTimeline*);
+ bool reattachCompositorPlayerIfNeeded(WebCompositorAnimationTimeline*);
// WebCompositorAnimationDelegate implementation.
void notifyAnimationStarted(double monotonicTime, int group) override;

Powered by Google App Engine
This is Rietveld 408576698