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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 * @extends {WebInspector.Object} 6 * @extends {WebInspector.Object}
7 * @constructor 7 * @constructor
8 */ 8 */
9 WebInspector.ComputedStyleModel = function() 9 WebInspector.ComputedStyleModel = function()
10 { 10 {
11 WebInspector.Object.call(this); 11 WebInspector.Object.call(this);
12 this._node = WebInspector.context.flavor(WebInspector.DOMNode); 12 this._node = WebInspector.context.flavor(WebInspector.DOMNode);
13 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._onN odeChanged, this); 13 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._onN odeChanged, this);
14 } 14 };
15 15
16 /** @enum {symbol} */ 16 /** @enum {symbol} */
17 WebInspector.ComputedStyleModel.Events = { 17 WebInspector.ComputedStyleModel.Events = {
18 ComputedStyleChanged: Symbol("ComputedStyleChanged") 18 ComputedStyleChanged: Symbol("ComputedStyleChanged")
19 } 19 };
20 20
21 WebInspector.ComputedStyleModel.prototype = { 21 WebInspector.ComputedStyleModel.prototype = {
22 /** 22 /**
23 * @return {?WebInspector.DOMNode} 23 * @return {?WebInspector.DOMNode}
24 */ 24 */
25 node: function() 25 node: function()
26 { 26 {
27 return this._node; 27 return this._node;
28 }, 28 },
29 29
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 * @return {?WebInspector.ComputedStyleModel.ComputedStyle} 149 * @return {?WebInspector.ComputedStyleModel.ComputedStyle}
150 * @this {WebInspector.ComputedStyleModel} 150 * @this {WebInspector.ComputedStyleModel}
151 */ 151 */
152 function verifyOutdated(elementNode, style) 152 function verifyOutdated(elementNode, style)
153 { 153 {
154 return elementNode === this._elementNode() && style ? new WebInspect or.ComputedStyleModel.ComputedStyle(elementNode, style) : /** @type {?WebInspect or.ComputedStyleModel.ComputedStyle} */(null); 154 return elementNode === this._elementNode() && style ? new WebInspect or.ComputedStyleModel.ComputedStyle(elementNode, style) : /** @type {?WebInspect or.ComputedStyleModel.ComputedStyle} */(null);
155 } 155 }
156 }, 156 },
157 157
158 __proto__: WebInspector.Object.prototype 158 __proto__: WebInspector.Object.prototype
159 } 159 };
160 160
161 /** 161 /**
162 * @constructor 162 * @constructor
163 * @param {!WebInspector.DOMNode} node 163 * @param {!WebInspector.DOMNode} node
164 * @param {!Map.<string, string>} computedStyle 164 * @param {!Map.<string, string>} computedStyle
165 */ 165 */
166 WebInspector.ComputedStyleModel.ComputedStyle = function(node, computedStyle) 166 WebInspector.ComputedStyleModel.ComputedStyle = function(node, computedStyle)
167 { 167 {
168 this.node = node; 168 this.node = node;
169 this.computedStyle = computedStyle; 169 this.computedStyle = computedStyle;
170 } 170 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698