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

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: 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/AnimationControlPane.js
diff --git a/Source/devtools/front_end/elements/AnimationControlPane.js b/Source/devtools/front_end/elements/AnimationControlPane.js
index 5d721b070916096a6e5ceef71dfa1bcea1a245f9..941d08924449ac9ef840cd036b8bfb08a85839eb 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-status-bar-item");
this._animationsPauseButton.element.classList.toggle("play-status-bar-item");

Powered by Google App Engine
This is Rietveld 408576698