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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/PropertiesWidget.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 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 24 matching lines...) Expand all
35 { 35 {
36 WebInspector.ThrottledWidget.call(this); 36 WebInspector.ThrottledWidget.call(this);
37 37
38 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.AttrModified, this._onNodeChange, this); 38 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.AttrModified, this._onNodeChange, this);
39 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.AttrRemoved, this._onNodeChange, this); 39 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.AttrRemoved, this._onNodeChange, this);
40 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.CharacterDataModified, this._onNodeChange, this); 40 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.CharacterDataModified, this._onNodeChange, this);
41 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.ChildNodeCountUpdated, this._onNodeChange, this); 41 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.ChildNodeCountUpdated, this._onNodeChange, this);
42 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._set Node, this); 42 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._set Node, this);
43 this._node = WebInspector.context.flavor(WebInspector.DOMNode); 43 this._node = WebInspector.context.flavor(WebInspector.DOMNode);
44 this.update(); 44 this.update();
45 } 45 };
46 46
47 WebInspector.PropertiesWidget._objectGroupName = "properties-sidebar-pane"; 47 WebInspector.PropertiesWidget._objectGroupName = "properties-sidebar-pane";
48 48
49 WebInspector.PropertiesWidget.prototype = { 49 WebInspector.PropertiesWidget.prototype = {
50 /** 50 /**
51 * @param {!WebInspector.Event} event 51 * @param {!WebInspector.Event} event
52 */ 52 */
53 _setNode: function(event) 53 _setNode: function(event)
54 { 54 {
55 this._node = /** @type {?WebInspector.DOMNode} */(event.data); 55 this._node = /** @type {?WebInspector.DOMNode} */(event.data);
(...skipping 13 matching lines...) Expand all
69 } 69 }
70 70
71 if (!this._node) { 71 if (!this._node) {
72 this.element.removeChildren(); 72 this.element.removeChildren();
73 this.sections = []; 73 this.sections = [];
74 return Promise.resolve(); 74 return Promise.resolve();
75 } 75 }
76 76
77 this._lastRequestedNode = this._node; 77 this._lastRequestedNode = this._node;
78 return this._node.resolveToObjectPromise(WebInspector.PropertiesWidget._ objectGroupName) 78 return this._node.resolveToObjectPromise(WebInspector.PropertiesWidget._ objectGroupName)
79 .then(nodeResolved.bind(this)) 79 .then(nodeResolved.bind(this));
80 80
81 /** 81 /**
82 * @param {?WebInspector.RemoteObject} object 82 * @param {?WebInspector.RemoteObject} object
83 * @this {WebInspector.PropertiesWidget} 83 * @this {WebInspector.PropertiesWidget}
84 */ 84 */
85 function nodeResolved(object) 85 function nodeResolved(object)
86 { 86 {
87 if (!object) 87 if (!object)
88 return; 88 return;
89 89
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 if (!this._node) 176 if (!this._node)
177 return; 177 return;
178 var data = event.data; 178 var data = event.data;
179 var node = /** @type {!WebInspector.DOMNode} */ (data instanceof WebInsp ector.DOMNode ? data : data.node); 179 var node = /** @type {!WebInspector.DOMNode} */ (data instanceof WebInsp ector.DOMNode ? data : data.node);
180 if (this._node !== node) 180 if (this._node !== node)
181 return; 181 return;
182 this.update(); 182 this.update();
183 }, 183 },
184 184
185 __proto__: WebInspector.ThrottledWidget.prototype 185 __proto__: WebInspector.ThrottledWidget.prototype
186 } 186 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698