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

Unified Diff: third_party/WebKit/Source/devtools/front_end/inline_editor/BezierUI.js

Issue 2626143004: DevTools: move from Common module - Geometry and CSSShadowModel (Closed)
Patch Set: minimize test diff Created 3 years, 11 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: third_party/WebKit/Source/devtools/front_end/inline_editor/BezierUI.js
diff --git a/third_party/WebKit/Source/devtools/front_end/inline_editor/BezierUI.js b/third_party/WebKit/Source/devtools/front_end/inline_editor/BezierUI.js
index 64873537c674b199f106bfb8b1c3aeb482339ef6..e03bdd7aabc75a495fde4a6167b3154fdce72ba5 100644
--- a/third_party/WebKit/Source/devtools/front_end/inline_editor/BezierUI.js
+++ b/third_party/WebKit/Source/devtools/front_end/inline_editor/BezierUI.js
@@ -21,7 +21,7 @@ InlineEditor.BezierUI = class {
}
/**
- * @param {!Common.Geometry.CubicBezier} bezier
+ * @param {!UI.Geometry.CubicBezier} bezier
* @param {!Element} path
* @param {number} width
*/
@@ -89,7 +89,7 @@ InlineEditor.BezierUI = class {
}
/**
- * @param {?Common.Geometry.CubicBezier} bezier
+ * @param {?UI.Geometry.CubicBezier} bezier
* @param {!Element} svg
*/
drawCurve(bezier, svg) {
@@ -107,13 +107,13 @@ InlineEditor.BezierUI = class {
var curve = group.createSVGChild('path', 'bezier-path');
var curvePoints = [
- new Common.Geometry.Point(
+ new UI.Geometry.Point(
bezier.controlPoints[0].x * width + this.radius,
(1 - bezier.controlPoints[0].y) * height + this.radius + this.marginTop),
- new Common.Geometry.Point(
+ new UI.Geometry.Point(
bezier.controlPoints[1].x * width + this.radius,
(1 - bezier.controlPoints[1].y) * height + this.radius + this.marginTop),
- new Common.Geometry.Point(width + this.radius, this.marginTop + this.radius)
+ new UI.Geometry.Point(width + this.radius, this.marginTop + this.radius)
];
curve.setAttribute(
'd', 'M' + this.radius + ',' + (height + this.radius + this.marginTop) + ' C' + curvePoints.join(' '));

Powered by Google App Engine
This is Rietveld 408576698