Changeset 201192 in webkit


Ignore:
Timestamp:
May 19, 2016, 3:27:17 PM (9 years ago)
Author:
Nikita Vasilyev
Message:

REGRESSION (r189385): Web Inspector: CSS properties modified via JS don't update in the Styles sidebar
https://bugs.webkit.org/show_bug.cgi?id=157918

Reviewed by Timothy Hatcher.

  • UserInterface/Controllers/DOMTreeManager.js:

(WebInspector.DOMTreeManager):
(WebInspector.DOMTreeManager.prototype._inlineStyleInvalidated):
(WebInspector.DOMTreeManager.prototype._loadNodeAttributes):
Set the initial value of _loadNodeAttributesTimeout to be 0,
as setTimeout always returns a positive integer.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r201191 r201192  
     12016-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
    1152016-05-19  Joseph Pecoraro  <pecoraro@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Controllers/DOMTreeManager.js

    r199380 r201192  
    4343        this._contentNodesToFlowsMap = new Map;
    4444        this._restoreSelectedNodeIsAllowed = true;
     45        this._loadNodeAttributesTimeout = 0;
    4546
    4647        WebInspector.Frame.addEventListener(WebInspector.Frame.Event.MainResourceDidChange, this._mainResourceDidChange, this);
     
    151152        for (var nodeId of nodeIds)
    152153            this._attributeLoadNodeIds[nodeId] = true;
    153         if ("_loadNodeAttributesTimeout" in this)
     154        if (this._loadNodeAttributesTimeout)
    154155            return;
    155156        this._loadNodeAttributesTimeout = setTimeout(this._loadNodeAttributes.bind(this), 0);
     
    172173        }
    173174
    174         this._loadNodeAttributesTimeout = undefined;
     175        this._loadNodeAttributesTimeout = 0;
    175176
    176177        for (var nodeId in this._attributeLoadNodeIds) {
Note: See TracChangeset for help on using the changeset viewer.