| Index: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
|
| index 86f9ab857020a1087ab8763a849465b34a8a33c3..41a65325c3a46fecba98ec7aa82db9c557a82643 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
|
| @@ -357,11 +357,8 @@ WebInspector.markBeingEdited = function(element, value)
|
| return true;
|
| }
|
|
|
| -WebInspector.CSSNumberRegex = /^(-?(?:\d+(?:\.\d+)?|\.\d+))$/;
|
| -
|
| WebInspector.StyleValueDelimiters = " \xA0\t\n\"':;,/()";
|
|
|
| -
|
| /**
|
| * @param {!Event} event
|
| * @return {?string}
|
| @@ -466,7 +463,7 @@ WebInspector._modifiedFloatNumber = function(number, event)
|
| // Make the new number and constrain it to a precision of 6, this matches numbers the engine returns.
|
| // Use the Number constructor to forget the fixed precision, so 1.100000 will print as 1.1.
|
| var result = Number((number + delta).toFixed(6));
|
| - if (!String(result).match(WebInspector.CSSNumberRegex))
|
| + if (!String(result).match(new RegExp("^(" + WebInspector.CSSNumberRegex.source + ")$")))
|
| return null;
|
|
|
| return result;
|
|
|