Chromium Code Reviews| 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} |
| */ |