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

Unified Diff: Source/devtools/front_end/elements/AnimationTimeline.js

Issue 1081753002: Devtools Animations: Support multiple frames in the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: New frame instrumentation on agent Created 5 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: Source/devtools/front_end/elements/AnimationTimeline.js
diff --git a/Source/devtools/front_end/elements/AnimationTimeline.js b/Source/devtools/front_end/elements/AnimationTimeline.js
index d3602f75df04280ad6bc2c632ed9ed2de0742ff0..eb5420602d7e1439be3db6fbd7b2fd670abcbdc6 100644
--- a/Source/devtools/front_end/elements/AnimationTimeline.js
+++ b/Source/devtools/front_end/elements/AnimationTimeline.js
@@ -46,7 +46,7 @@ WebInspector.AnimationTimeline.prototype = {
this._animationsPlaybackRate = WebInspector.AnimationsSidebarPane.GlobalPlaybackRates[event.target.value];
var target = WebInspector.targetManager.mainTarget();
if (target)
- target.animationAgent().setPlaybackRate(this._animationsPlaybackRate);
+ target.animationModel.setPlaybackRate(this._animationsPlaybackRate);
this._playbackLabel.textContent = this._animationsPlaybackRate + "x";
WebInspector.userMetrics.AnimationsPlaybackRateChanged.record();
if (this._scrubberPlayer)
@@ -366,7 +366,7 @@ WebInspector.AnimationTimeline.prototype = {
var target = WebInspector.targetManager.mainTarget();
if (target)
- target.animationAgent().setPlaybackRate(0);
+ target.animationModel.setPlaybackRate(0);
return true;
},
@@ -394,7 +394,7 @@ WebInspector.AnimationTimeline.prototype = {
this._timelineScrubberHead.window().requestAnimationFrame(this._updateScrubber.bind(this));
var target = WebInspector.targetManager.mainTarget();
if (target)
- target.animationAgent().setPlaybackRate(this._animationsPlaybackRate);
+ target.animationModel.setPlaybackRate(this._animationsPlaybackRate);
},
__proto__: WebInspector.VBox.prototype

Powered by Google App Engine
This is Rietveld 408576698