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

Unified Diff: Source/devtools/front_end/sdk/AnimationModel.js

Issue 1155773002: Devtools Animations: Add cubic bezier easing editor for animations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missing files Created 5 years, 7 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/sdk/AnimationModel.js
diff --git a/Source/devtools/front_end/sdk/AnimationModel.js b/Source/devtools/front_end/sdk/AnimationModel.js
index 1c42e10a1ceb7c0d5bc9ff58a6060be1b69e3a5c..4bf0fc35b1ae44e727f9535d15ef34a5e7086dc4 100644
--- a/Source/devtools/front_end/sdk/AnimationModel.js
+++ b/Source/devtools/front_end/sdk/AnimationModel.js
@@ -353,7 +353,19 @@ WebInspector.AnimationModel.AnimationNode.prototype = {
*/
easing: function()
{
- return this._payload.easing;
+ return this._easing || this._payload.easing;
+ },
+
+ /**
+ * @param {string} value
+ * @param {string} id
+ * @param {boolean=} callProtocol
+ */
+ setEasing: function(value, id, callProtocol)
+ {
+ this._easing = value;
+ if (callProtocol)
dgozman 2015/05/28 11:04:03 What's the usecase for callProtocol == false? When
samli 2015/05/28 11:48:14 CSS animations respond to updated styles and hence
+ this.target().animationAgent().setEasing(id, value);
},
__proto__: WebInspector.SDKObject.prototype

Powered by Google App Engine
This is Rietveld 408576698