⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 282475 in webkit


Ignore:
Timestamp:
Sep 15, 2021, 2:49:09 PM (5 years ago)
Author:
Patrick Angle
Message:

Web Inspector: DOMTreeUpdater doesn't complete deferred updating/clear updated lists when a node isn't found in the tree
​https://bugs.webkit.org/show_bug.cgi?id=230289

Reviewed by Devin Rousso.

Instead of an early return when a tree element can't be found, we should continue on to the next updated node
and finish out by clearing the collections of updated nodes, otherwise a node that will never be findable again
will cause extra work to be done on every update.

  • UserInterface/Views/DOMTreeUpdater.js:

(WI.DOMTreeUpdater.prototype._updateModifiedNodes):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r282360 r282475  
     12021-09-15  Patrick Angle  <pangle@apple.com>
     2
     3        Web Inspector: `DOMTreeUpdater` doesn't complete deferred updating/clear updated lists when a node isn't found in the tree
     4        https://bugs.webkit.org/show_bug.cgi?id=230289
     5
     6        Reviewed by Devin Rousso.
     7
     8        Instead of an early return when a tree element can't be found, we should continue on to the next updated node
     9        and finish out by clearing the collections of updated nodes, otherwise a node that will never be findable again
     10        will cause extra work to be done on every update.
     11
     12        * UserInterface/Views/DOMTreeUpdater.js:
     13        (WI.DOMTreeUpdater.prototype._updateModifiedNodes):
     14
    1152021-09-13  Razvan Caliman  <rcaliman@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeUpdater.js

    r278785 r282475  
    144144            let nodeTreeElement = this._treeOutline.findTreeElement(node);
    145145            if (!nodeTreeElement)
    146                 return;
     146                continue;
    147147
    148148            for (let [attribute, nodes] of this._recentlyModifiedAttributes.entries()) {
Note: See TracChangeset for help on using the changeset viewer.