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

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: Address comments 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
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..71dd6d7ac0b0f80748c383bae26e225fdebd282a 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
+ */
+ scale: function(scalar)
+ {
+ this.x *= scalar;
lushnikov 2016/08/31 00:48:03 let's return a new object instead of mutating
flandy 2016/08/31 01:35:05 Done.
+ this.y *= scalar;
+ },
+
+ /**
* @override
* @return {string}
*/

Powered by Google App Engine
This is Rietveld 408576698