Changeset 238938 in webkit


Ignore:
Timestamp:
Dec 6, 2018 12:37:55 PM (5 years ago)
Author:
Matt Baker
Message:

Web Inspector: REGRESSION(r238602): Elements: collapsing a DOM node with the left arrow doesn't work
https://bugs.webkit.org/show_bug.cgi?id=192353
<rdar://problem/46455019>

Reviewed by Devin Rousso.

  • UserInterface/Views/TreeElement.js:

(WI.TreeElement.prototype.deselect):
Don't early return when the element is not the selected tree element.
This condition no longer holds now that TreeOutline supports multiple selection.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r238914 r238938  
     12018-12-06  Matt Baker  <mattbaker@apple.com>
     2
     3        Web Inspector: REGRESSION(r238602): Elements: collapsing a DOM node with the left arrow doesn't work
     4        https://bugs.webkit.org/show_bug.cgi?id=192353
     5        <rdar://problem/46455019>
     6
     7        Reviewed by Devin Rousso.
     8
     9        * UserInterface/Views/TreeElement.js:
     10        (WI.TreeElement.prototype.deselect):
     11        Don't early return when the element is not the selected tree element.
     12        This condition no longer holds now that TreeOutline supports multiple selection.
     13
    1142018-12-05  Matt Baker  <mattbaker@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/TreeElement.js

    r238859 r238938  
    533533    deselect(suppressNotification)
    534534    {
    535         if (!this.treeOutline || this.treeOutline.selectedTreeElement !== this || !this.selected)
     535        if (!this.treeOutline || !this.selected)
    536536            return false;
     537
     538        console.assert(this.treeOutline.selectedTreeElements.includes(this));
    537539
    538540        this.selected = false;
Note: See TracChangeset for help on using the changeset viewer.