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

Unified Diff: third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js

Issue 2575413003: DevTools: Animations: Remember the playback rate (Closed)
Patch Set: Don't use setting Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
diff --git a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
index fc102c39548cbd63cd49d1d1af568e8639e24930..694653d7f071f2b0f59468706239b2f6121f9d2e 100644
--- a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
+++ b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
@@ -322,12 +322,11 @@ Animation.AnimationTimeline = class extends UI.VBox {
_reset() {
this._clearTimeline();
- if (this._allPaused) {
- this._playbackRate = 1;
+ if (this._allPaused)
this._togglePauseAll();
- } else {
- this._setPlaybackRate(1);
- }
+ else
+ this._setPlaybackRate(this._playbackRate);
+
for (var group of this._groupBuffer)
group.release();
this._groupBuffer = [];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698