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

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/Geometry.js

Issue 2292583002: DevTools: Create 2D slider for shadow-editor offset (Closed)
Patch Set: Move beginPath under if Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/common/Geometry.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/Geometry.js b/third_party/WebKit/Source/devtools/front_end/common/Geometry.js
index 716b9ea93d543dffde67408f6b0704cf994d4c10..18359b83b10487ceeceb59233cf8876782459fcf 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/Geometry.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/Geometry.js
@@ -90,6 +90,15 @@ WebInspector.Geometry.Point.prototype = {
},
/**
+ * @param {number} scalar
+ * @return {!WebInspector.Geometry.Point}
+ */
+ scale: function(scalar)
+ {
+ return new WebInspector.Geometry.Point(this.x * scalar, this.y * scalar);
+ },
+
+ /**
* @override
* @return {string}
*/
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698