Changeset 235377 in webkit


Ignore:
Timestamp:
Aug 27, 2018 9:59:39 AM (6 years ago)
Author:
Devin Rousso
Message:

Web Inspector: REGRESSION: virtualized TreeOutline is empty when filtering
https://bugs.webkit.org/show_bug.cgi?id=188959

Reviewed by Brian Burg.

  • UserInterface/Views/TreeElement.js:

(WI.TreeElement.prototype.set hidden):
Only set focusedTreeElement if the WI.TreeElement is selected and not hidden. There is
no reason to focus a hidden or unselected WI.TreeElement.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r235273 r235377  
     12018-08-27  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: REGRESSION: virtualized TreeOutline is empty when filtering
     4        https://bugs.webkit.org/show_bug.cgi?id=188959
     5
     6        Reviewed by Brian Burg.
     7
     8        * UserInterface/Views/TreeElement.js:
     9        (WI.TreeElement.prototype.set hidden):
     10        Only set `focusedTreeElement` if the `WI.TreeElement` is selected and not hidden. There is
     11        no reason to focus a hidden or unselected `WI.TreeElement`.
     12
    1132018-08-23  Devin Rousso  <drousso@apple.com>
    214
  • trunk/Source/WebInspectorUI/UserInterface/Views/TreeElement.js

    r234563 r235377  
    167167
    168168        if (this.treeOutline) {
    169             this.treeOutline.soon.updateVirtualizedElements(this);
     169            let focusedTreeElement = null;
     170            if (!this._hidden && this.selected)
     171                focusedTreeElement = this;
     172            this.treeOutline.soon.updateVirtualizedElements(focusedTreeElement);
    170173
    171174            this.treeOutline.dispatchEventToListeners(WI.TreeOutline.Event.ElementVisibilityDidChange, {element: this});
Note: See TracChangeset for help on using the changeset viewer.