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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @param {!WebInspector.CSSModel} cssModel 7 * @param {!WebInspector.CSSModel} cssModel
8 * @param {!WebInspector.DOMNode} node 8 * @param {!WebInspector.DOMNode} node
9 * @param {?CSSAgent.CSSStyle} inlinePayload 9 * @param {?CSSAgent.CSSStyle} inlinePayload
10 * @param {?CSSAgent.CSSStyle} attributesPayload 10 * @param {?CSSAgent.CSSStyle} attributesPayload
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 * @param {!Array<number>} matchingSelectorIndices 115 * @param {!Array<number>} matchingSelectorIndices
116 * @this {WebInspector.CSSMatchedStyles} 116 * @this {WebInspector.CSSMatchedStyles}
117 */ 117 */
118 function addMatchingSelectors(node, rule, matchingSelectorIndices) 118 function addMatchingSelectors(node, rule, matchingSelectorIndices)
119 { 119 {
120 for (var matchingSelectorIndex of matchingSelectorIndices) { 120 for (var matchingSelectorIndex of matchingSelectorIndices) {
121 var selector = rule.selectors[matchingSelectorIndex]; 121 var selector = rule.selectors[matchingSelectorIndex];
122 this._setSelectorMatches(node, selector.text, true); 122 this._setSelectorMatches(node, selector.text, true);
123 } 123 }
124 } 124 }
125 } 125 };
126 126
127 WebInspector.CSSMatchedStyles.prototype = { 127 WebInspector.CSSMatchedStyles.prototype = {
128 /** 128 /**
129 * @return {!WebInspector.DOMNode} 129 * @return {!WebInspector.DOMNode}
130 */ 130 */
131 node: function() 131 node: function()
132 { 132 {
133 return this._node; 133 return this._node;
134 }, 134 },
135 135
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 notUsed = notUsed && !styleActiveProperties.has(longhandCano nicalName); 428 notUsed = notUsed && !styleActiveProperties.has(longhandCano nicalName);
429 } 429 }
430 if (!notUsed) 430 if (!notUsed)
431 continue; 431 continue;
432 styleActiveProperties.delete(canonicalName); 432 styleActiveProperties.delete(canonicalName);
433 allUsedProperties.delete(canonicalName); 433 allUsedProperties.delete(canonicalName);
434 result.set(property, WebInspector.CSSMatchedStyles.PropertyState .Overloaded); 434 result.set(property, WebInspector.CSSMatchedStyles.PropertyState .Overloaded);
435 } 435 }
436 } 436 }
437 } 437 }
438 } 438 };
439 439
440 /** @enum {string} */ 440 /** @enum {string} */
441 WebInspector.CSSMatchedStyles.PropertyState = { 441 WebInspector.CSSMatchedStyles.PropertyState = {
442 Active: "Active", 442 Active: "Active",
443 Overloaded: "Overloaded" 443 Overloaded: "Overloaded"
444 } 444 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698