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

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

Issue 1081753002: Devtools Animations: Support multiple frames in the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/AnimationControlPane.js
diff --git a/Source/devtools/front_end/elements/AnimationControlPane.js b/Source/devtools/front_end/elements/AnimationControlPane.js
index 92b27220c79983f9ad2c4248cd9d5abb5d03fceb..108a98288038aee9deeeaae7f75dd0c96f944114 100644
--- a/Source/devtools/front_end/elements/AnimationControlPane.js
+++ b/Source/devtools/front_end/elements/AnimationControlPane.js
@@ -39,7 +39,7 @@ WebInspector.AnimationControlPane.prototype = {
_playbackSliderInputHandler: function (event)
{
this._animationsPlaybackRate = WebInspector.AnimationsSidebarPane.GlobalPlaybackRates[event.target.value];
- this._target.animationAgent().setPlaybackRate(this._animationsPaused ? 0 : this._animationsPlaybackRate);
+ this._target.animationModel.setPlaybackRate(this._animationsPaused ? 0 : this._animationsPlaybackRate);
this._animationsPlaybackLabel.textContent = this._animationsPlaybackRate + "x";
WebInspector.userMetrics.AnimationsPlaybackRateChanged.record();
},
@@ -47,7 +47,7 @@ WebInspector.AnimationControlPane.prototype = {
_pauseButtonHandler: function ()
{
this._animationsPaused = !this._animationsPaused;
- this._target.animationAgent().setPlaybackRate(this._animationsPaused ? 0 : this._animationsPlaybackRate);
+ this._target.animationModel.setPlaybackRate(this._animationsPaused ? 0 : this._animationsPlaybackRate);
WebInspector.userMetrics.AnimationsPlaybackRateChanged.record();
this._animationsPauseButton.element.classList.toggle("pause-toolbar-item");
this._animationsPauseButton.element.classList.toggle("play-toolbar-item");
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.idl ('k') | Source/devtools/front_end/elements/AnimationTimeline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698