Changeset 244282 in webkit


Ignore:
Timestamp:
Apr 15, 2019 12:56:59 PM (5 years ago)
Author:
Devin Rousso
Message:

Web Inspector: REGRESSION(r244268): Canvas: navigation sidebar no longer appears
https://bugs.webkit.org/show_bug.cgi?id=196920
<rdar://problem/49910618>

Reviewed by Timothy Hatcher.

  • UserInterface/Views/ContentBrowserTabContentView.js:

(WI.ContentBrowserTabContentView.prototype.showNavigationSidebarPanel):
Now that we no longer call addSubview when adding a sidebar panel, we can't check to see
if parentSidebar has been set, as that is just an alias for parentView.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r244279 r244282  
     12019-04-15  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: REGRESSION(r244268): Canvas: navigation sidebar no longer appears
     4        https://bugs.webkit.org/show_bug.cgi?id=196920
     5        <rdar://problem/49910618>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Views/ContentBrowserTabContentView.js:
     10        (WI.ContentBrowserTabContentView.prototype.showNavigationSidebarPanel):
     11        Now that we no longer call `addSubview` when adding a sidebar panel, we can't check to see
     12        if `parentSidebar` has been set, as that is just an alias for `parentView`.
     13
    1142019-04-15  Devin Rousso  <drousso@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/ContentBrowserTabContentView.js

    r238859 r244282  
    155155            if (!this.navigationSidebarPanel.parentSidebar)
    156156                WI.navigationSidebar.addSidebarPanel(this.navigationSidebarPanel);
    157         } else if (this.navigationSidebarPanel.parentSidebar)
    158             WI.navigationSidebar.removeSidebarPanel(this.navigationSidebarPanel);
    159 
    160         if (this.navigationSidebarPanel.parentSidebar) {
    161157            WI.navigationSidebar.selectedSidebarPanel = this.navigationSidebarPanel;
    162158            WI.navigationSidebar.collapsed = this.navigationSidebarCollapsedSetting.value;
    163         } else
     159        } else {
    164160            WI.navigationSidebar.collapsed = true;
     161            if (this.navigationSidebarPanel.parentSidebar)
     162                WI.navigationSidebar.removeSidebarPanel(this.navigationSidebarPanel);
     163        }
    165164
    166165        this._ignoreNavigationSidebarPanelCollapsedEvent = false;
Note: See TracChangeset for help on using the changeset viewer.