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

Unified Diff: third_party/WebKit/Source/platform/animation/CompositorScrollOffsetAnimationCurve.cpp

Issue 2015113003: Correctly update scroll offset animations in response to scroll anchoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 7 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/animation/CompositorScrollOffsetAnimationCurve.cpp
diff --git a/third_party/WebKit/Source/platform/animation/CompositorScrollOffsetAnimationCurve.cpp b/third_party/WebKit/Source/platform/animation/CompositorScrollOffsetAnimationCurve.cpp
index 2383fe9497d7b4ee522d0df8fdc21b78516749c0..6f0ff55628e3bdaa22fa77311e184687ba56af2e 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorScrollOffsetAnimationCurve.cpp
+++ b/third_party/WebKit/Source/platform/animation/CompositorScrollOffsetAnimationCurve.cpp
@@ -60,6 +60,11 @@ FloatPoint CompositorScrollOffsetAnimationCurve::getValue(double time) const
return FloatPoint(value.x(), value.y());
}
+void CompositorScrollOffsetAnimationCurve::applyAdjustment(IntSize adjustment)
+{
+ m_curve->ApplyAdjustment(gfx::Vector2dF(adjustment.width(), adjustment.height()));
+}
+
double CompositorScrollOffsetAnimationCurve::duration() const
{
return m_curve->Duration().InSecondsF();

Powered by Google App Engine
This is Rietveld 408576698