Title: [279790] trunk/Source/WebInspectorUI
- Revision
- 279790
- Author
- [email protected]
- Date
- 2021-07-09 10:50:31 -0700 (Fri, 09 Jul 2021)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (279789 => 279790)
--- trunk/Source/WebInspectorUI/ChangeLog 2021-07-09 17:36:12 UTC (rev 279789)
+++ trunk/Source/WebInspectorUI/ChangeLog 2021-07-09 17:50:31 UTC (rev 279790)
@@ -1,3 +1,16 @@
+2021-07-09 Patrick Angle <[email protected]>
+
+ 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):
+
2021-07-06 Patrick Angle <[email protected]>
Web Inspector: Elements Tab Details Sidebar navigation items sometime wrap to a second line
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SingleSidebar.js (279789 => 279790)
--- trunk/Source/WebInspectorUI/UserInterface/Views/SingleSidebar.js 2021-07-09 17:36:12 UTC (rev 279789)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SingleSidebar.js 2021-07-09 17:50:31 UTC (rev 279790)
@@ -183,10 +183,10 @@
return;
if (this._navigationBar)
- this._navigationBar.updateLayout(WI.View.LayoutReason.Resize);
+ this._navigationBar.needsLayout(WI.View.LayoutReason.Resize);
if (this.selectedSidebarPanel)
- this.selectedSidebarPanel.updateLayout(WI.View.LayoutReason.Resize);
+ this.selectedSidebarPanel.needsLayout(WI.View.LayoutReason.Resize);
this.dispatchEventToListeners(WI.Sidebar.Event.WidthDidChange, {newWidth});
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes