| 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.CSSProperty = class { | 7 WebInspector.CSSProperty = class { |
| 8 /** | 8 /** |
| 9 * @param {!WebInspector.CSSStyleDeclaration} ownerStyle | 9 * @param {!WebInspector.CSSStyleDeclaration} ownerStyle |
| 10 * @param {number} index | 10 * @param {number} index |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 setDisabled(disabled) { | 278 setDisabled(disabled) { |
| 279 if (!this.ownerStyle) | 279 if (!this.ownerStyle) |
| 280 return Promise.resolve(false); | 280 return Promise.resolve(false); |
| 281 if (disabled === this.disabled) | 281 if (disabled === this.disabled) |
| 282 return Promise.resolve(true); | 282 return Promise.resolve(true); |
| 283 var propertyText = this.text.trim(); | 283 var propertyText = this.text.trim(); |
| 284 var text = disabled ? '/* ' + propertyText + ' */' : this.text.substring(2,
propertyText.length - 2).trim(); | 284 var text = disabled ? '/* ' + propertyText + ' */' : this.text.substring(2,
propertyText.length - 2).trim(); |
| 285 return this.setText(text, true, true); | 285 return this.setText(text, true, true); |
| 286 } | 286 } |
| 287 }; | 287 }; |
| 288 | |
| 289 | |
| OLD | NEW |