Changeset 279790 in webkit


Ignore:
Timestamp:
Jul 9, 2021 10:50:31 AM (13 months ago)
Author:
Patrick Angle
Message:

Web Inspector: Perform sidebar panel and navigation bar layout asynchronously during resize
https://bugs.webkit.org/show_bug.cgi?id=227716

Reviewed by Devin Rousso.

Perform layout updates to the navigation bar and selected panel asynchronously so that they can be batched
together, instead of blocking on layout for each resize (of which there will be many during a dragging resize).

  • UserInterface/Views/SingleSidebar.js:

(WI.SingleSidebar.prototype._recalculateWidth):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r279613 r279790  
     12021-07-09  Patrick Angle  <pangle@apple.com>
     2
     3        Web Inspector: Perform sidebar panel and navigation bar layout asynchronously during resize
     4        https://bugs.webkit.org/show_bug.cgi?id=227716
     5
     6        Reviewed by Devin Rousso.
     7
     8        Perform layout updates to the navigation bar and selected panel asynchronously so that they can be batched
     9        together, instead of blocking on layout for each resize (of which there will be many during a dragging resize).
     10
     11        * UserInterface/Views/SingleSidebar.js:
     12        (WI.SingleSidebar.prototype._recalculateWidth):
     13
    1142021-07-06  Patrick Angle  <pangle@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/SingleSidebar.js

    r279613 r279790  
    184184
    185185        if (this._navigationBar)
    186             this._navigationBar.updateLayout(WI.View.LayoutReason.Resize);
     186            this._navigationBar.needsLayout(WI.View.LayoutReason.Resize);
    187187
    188188        if (this.selectedSidebarPanel)
    189             this.selectedSidebarPanel.updateLayout(WI.View.LayoutReason.Resize);
     189            this.selectedSidebarPanel.needsLayout(WI.View.LayoutReason.Resize);
    190190
    191191        this.dispatchEventToListeners(WI.Sidebar.Event.WidthDidChange, {newWidth});
Note: See TracChangeset for help on using the changeset viewer.