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

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 707610cc71299640ab43b1a8c6948d33d5605623..fa9c473dc3eb563bfc39b064c09a2cd2ff36905e 100644
--- a/Source/devtools/front_end/elements/AnimationTimeline.js
+++ b/Source/devtools/front_end/elements/AnimationTimeline.js
@@ -790,11 +790,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