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

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

Issue 1151263007: Devtools: Move animation to separate module (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/BezierUI.js
diff --git a/Source/devtools/front_end/elements/BezierUI.js b/Source/devtools/front_end/elements/BezierUI.js
index 2a9b716fd317eb9e730c768dfb4878a302543c40..b7ab78fe64c626e533e9f43676c7f73822b93342 100644
--- a/Source/devtools/front_end/elements/BezierUI.js
+++ b/Source/devtools/front_end/elements/BezierUI.js
@@ -78,7 +78,7 @@ WebInspector.BezierUI.prototype = {
if (!bezier)
return;
var width = this.curveWidth();
- var height = this.curveHeight();;
+ var height = this.curveHeight();
svg.setAttribute("width", this.width);
svg.setAttribute("height", this.height);
svg.removeChildren();
@@ -100,6 +100,8 @@ WebInspector.BezierUI.prototype = {
}
}
+WebInspector.BezierUI.Height = 32;
+
/**
* @param {!WebInspector.Geometry.CubicBezier} bezier
* @param {!Element} path
@@ -107,7 +109,7 @@ WebInspector.BezierUI.prototype = {
*/
WebInspector.BezierUI.drawVelocityChart = function(bezier, path, width)
{
- var height = WebInspector.AnimationUI.Options.AnimationHeight;
+ var height = WebInspector.BezierUI.Height;
var pathBuilder = ["M", 0, height];
const sampleSize = 1 / 40;
« no previous file with comments | « Source/devtools/front_end/elements/AnimationTimeline.js ('k') | Source/devtools/front_end/elements/animationTimeline.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698