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

Unified Diff: third_party/WebKit/Source/core/animation/InertEffect.cpp

Issue 1944603003: Make AnimationEffectReadOnly.getComputedTiming() consistent with Web Animations spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 8 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/animation/InertEffect.cpp
diff --git a/third_party/WebKit/Source/core/animation/InertEffect.cpp b/third_party/WebKit/Source/core/animation/InertEffect.cpp
index f743e4eac553a73734cb72e1c9e28b58880c7316..b02c54e33e10575ea88aa72a6fd7638779f1119b 100644
--- a/third_party/WebKit/Source/core/animation/InertEffect.cpp
+++ b/third_party/WebKit/Source/core/animation/InertEffect.cpp
@@ -57,7 +57,7 @@ void InertEffect::sample(Vector<RefPtr<Interpolation>>& result) const
double iteration = currentIteration();
ASSERT(iteration >= 0);
- m_model->sample(clampTo<int>(iteration, 0), timeFraction(), iterationDuration(), result);
+ m_model->sample(clampTo<int>(iteration, 0), progress(), iterationDuration(), result);
}
double InertEffect::calculateTimeToEffectChange(bool, double, double) const

Powered by Google App Engine
This is Rietveld 408576698