Changeset 201192 in webkit
- Timestamp:
- May 19, 2016, 3:27:17 PM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r201191 r201192 1 2016-05-19 Nikita Vasilyev <nvasilyev@apple.com> 2 3 REGRESSION (r189385): Web Inspector: CSS properties modified via JS don't update in the Styles sidebar 4 https://bugs.webkit.org/show_bug.cgi?id=157918 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Controllers/DOMTreeManager.js: 9 (WebInspector.DOMTreeManager): 10 (WebInspector.DOMTreeManager.prototype._inlineStyleInvalidated): 11 (WebInspector.DOMTreeManager.prototype._loadNodeAttributes): 12 Set the initial value of _loadNodeAttributesTimeout to be 0, 13 as setTimeout always returns a positive integer. 14 1 15 2016-05-19 Joseph Pecoraro <pecoraro@apple.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/Controllers/DOMTreeManager.js
r199380 r201192 43 43 this._contentNodesToFlowsMap = new Map; 44 44 this._restoreSelectedNodeIsAllowed = true; 45 this._loadNodeAttributesTimeout = 0; 45 46 46 47 WebInspector.Frame.addEventListener(WebInspector.Frame.Event.MainResourceDidChange, this._mainResourceDidChange, this); … … 151 152 for (var nodeId of nodeIds) 152 153 this._attributeLoadNodeIds[nodeId] = true; 153 if ( "_loadNodeAttributesTimeout" in this)154 if (this._loadNodeAttributesTimeout) 154 155 return; 155 156 this._loadNodeAttributesTimeout = setTimeout(this._loadNodeAttributes.bind(this), 0); … … 172 173 } 173 174 174 this._loadNodeAttributesTimeout = undefined;175 this._loadNodeAttributesTimeout = 0; 175 176 176 177 for (var nodeId in this._attributeLoadNodeIds) {
Note:
See TracChangeset
for help on using the changeset viewer.