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

Unified Diff: Source/core/animation/KeyframeEffectModel.cpp

Issue 993413004: Devtools Animations: Update transition timing on timeline interaction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 5 years, 9 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: Source/core/animation/KeyframeEffectModel.cpp
diff --git a/Source/core/animation/KeyframeEffectModel.cpp b/Source/core/animation/KeyframeEffectModel.cpp
index 001535c216868570e124dd9c24e621eb0ab29f2f..7e2c35860751dc3a009f5ebf091956fa9b473355 100644
--- a/Source/core/animation/KeyframeEffectModel.cpp
+++ b/Source/core/animation/KeyframeEffectModel.cpp
@@ -55,6 +55,14 @@ PropertySet KeyframeEffectModelBase::properties() const
return result;
}
+void KeyframeEffectModelBase::setFrames(KeyframeVector& keyframes)
+{
+ // TODO(samli): Should also notify/invalidate the player
+ m_keyframes = keyframes;
+ m_keyframeGroups = nullptr;
+ m_interpolationEffect = nullptr;
+}
+
void KeyframeEffectModelBase::sample(int iteration, double fraction, double iterationDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>& result) const
{
ASSERT(iteration >= 0);

Powered by Google App Engine
This is Rietveld 408576698