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

Unified Diff: Source/devtools/front_end/sdk/AnimationModel.js

Issue 1042143005: Devtools Animations: Support multiple frames in the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test 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/devtools/front_end/sdk/AnimationModel.js
diff --git a/Source/devtools/front_end/sdk/AnimationModel.js b/Source/devtools/front_end/sdk/AnimationModel.js
index 573293b402253abe935d0204af9832f2782d23e9..89e066f349b2eddfee87a10a3f947473d72ea66c 100644
--- a/Source/devtools/front_end/sdk/AnimationModel.js
+++ b/Source/devtools/front_end/sdk/AnimationModel.js
@@ -159,7 +159,15 @@ WebInspector.AnimationModel.AnimationPlayer.prototype = {
*/
startTime: function()
{
- return this._payload.startTime;
+ return this._startTime === undefined ? this._payload.startTime : this._startTime;
+ },
+
+ /**
+ * @param {number} startTime
+ */
+ updateStartTime: function(startTime)
+ {
+ this._startTime = startTime;
},
/**

Powered by Google App Engine
This is Rietveld 408576698