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

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

Issue 993413004: Devtools Animations: Update transition timing on timeline interaction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/elements/AnimationTimeline.js
diff --git a/Source/devtools/front_end/elements/AnimationTimeline.js b/Source/devtools/front_end/elements/AnimationTimeline.js
index b8c496a74ba361ade64c588bb80aea30271c2c08..9506e01a9eb05dd0b2f5c98d9ec159702898ebd4 100644
--- a/Source/devtools/front_end/elements/AnimationTimeline.js
+++ b/Source/devtools/front_end/elements/AnimationTimeline.js
@@ -786,11 +786,10 @@ WebInspector.AnimationUI.prototype = {
var duration = this._duration();
this._setDelay(delay);
this._setDuration(duration);
- // FIXME: Transition timing updates currently not supported
- if (this._animation.type() == "WebAnimation") {
+ if (this._animation.type() !== "CSSAnimation") {
var target = WebInspector.targetManager.mainTarget();
if (target)
- target.animationAgent().setTiming(this._animation.id(), duration, delay);
+ target.animationAgent().setTiming(this._animation.id(), duration, delay, this._animation.type() === "CSSTransition");
}
}

Powered by Google App Engine
This is Rietveld 408576698