| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 /** | 4 /** |
| 5 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 WebInspector.CSSShadowModel = class { | 7 WebInspector.CSSShadowModel = class { |
| 8 /** | 8 /** |
| 9 * @param {boolean} isBoxShadow | 9 * @param {boolean} isBoxShadow |
| 10 */ | 10 */ |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 } | 314 } |
| 315 }; | 315 }; |
| 316 | 316 |
| 317 /** @type {!RegExp} */ | 317 /** @type {!RegExp} */ |
| 318 WebInspector.CSSLength.Regex = (function() { | 318 WebInspector.CSSLength.Regex = (function() { |
| 319 var number = '([+-]?(?:[0-9]*[.])?[0-9]+(?:[eE][+-]?[0-9]+)?)'; | 319 var number = '([+-]?(?:[0-9]*[.])?[0-9]+(?:[eE][+-]?[0-9]+)?)'; |
| 320 var unit = '(ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmax|vmin|vw)'; | 320 var unit = '(ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmax|vmin|vw)'; |
| 321 var zero = '[+-]?(?:0*[.])?0+(?:[eE][+-]?[0-9]+)?'; | 321 var zero = '[+-]?(?:0*[.])?0+(?:[eE][+-]?[0-9]+)?'; |
| 322 return new RegExp(number + unit + '|' + zero, 'gi'); | 322 return new RegExp(number + unit + '|' + zero, 'gi'); |
| 323 })(); | 323 })(); |
| 324 | |
| 325 | |
| OLD | NEW |