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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSProperty.js

Issue 2469113002: DevTools: clang format all the source + clang config landed. (Closed)
Patch Set: for landing Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698