Title: [199678] trunk/Source/WebInspectorUI
Revision
199678
Author
[email protected]
Date
2016-04-18 10:28:40 -0700 (Mon, 18 Apr 2016)

Log Message

Web Inspector: NavigationSidebarPanel does a lot of style recalc and layout on busy sites

https://bugs.webkit.org/show_bug.cgi?id=156704
rdar://problem/25778744

Reviewed by Brian Burg.

* UserInterface/Views/NavigationSidebarPanel.js:
(WebInspector.NavigationSidebarPanel):
(WebInspector.NavigationSidebarPanel.prototype._treeElementDisclosureDidChange):
Use _updateContentOverflowShadowVisibilitySoon in more places so the style recalc
and layout changes are coalesced into one action after all rapid fire calls.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (199677 => 199678)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-04-18 17:28:38 UTC (rev 199677)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-04-18 17:28:40 UTC (rev 199678)
@@ -1,5 +1,20 @@
 2016-04-18  Timothy Hatcher  <[email protected]>
 
+        Web Inspector: NavigationSidebarPanel does a lot of style recalc and layout on busy sites
+
+        https://bugs.webkit.org/show_bug.cgi?id=156704
+        rdar://problem/25778744
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/NavigationSidebarPanel.js:
+        (WebInspector.NavigationSidebarPanel):
+        (WebInspector.NavigationSidebarPanel.prototype._treeElementDisclosureDidChange):
+        Use _updateContentOverflowShadowVisibilitySoon in more places so the style recalc
+        and layout changes are coalesced into one action after all rapid fire calls.
+
+2016-04-18  Timothy Hatcher  <[email protected]>
+
         Web Inspector: Database query result DataGrids have misaligned header columns
 
         https://bugs.webkit.org/show_bug.cgi?id=156701

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js (199677 => 199678)


--- trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js	2016-04-18 17:28:38 UTC (rev 199677)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js	2016-04-18 17:28:40 UTC (rev 199678)
@@ -33,7 +33,7 @@
 
         this._visibleContentTreeOutlines = new Set;
 
-        this.contentView.element.addEventListener("scroll", this._updateContentOverflowShadowVisibility.bind(this));
+        this.contentView.element.addEventListener("scroll", this._updateContentOverflowShadowVisibilitySoon.bind(this));
 
         this._contentTreeOutline = this.createContentTreeOutline(true);
         this._selectedContentTreeOutline = null;
@@ -53,7 +53,7 @@
             this.element.appendChild(this._topOverflowShadowElement);
         }
 
-        this._boundUpdateContentOverflowShadowVisibility = this._updateContentOverflowShadowVisibility.bind(this);
+        this._boundUpdateContentOverflowShadowVisibility = this._updateContentOverflowShadowVisibilitySoon.bind(this);
         window.addEventListener("resize", this._boundUpdateContentOverflowShadowVisibility);
 
         this._filtersSetting = new WebInspector.Setting(identifier + "-navigation-sidebar-filters", {});
@@ -646,7 +646,7 @@
 
     _treeElementDisclosureDidChange(event)
     {
-        this._updateContentOverflowShadowVisibility();
+        this._updateContentOverflowShadowVisibilitySoon();
     }
 
     _treeSelectionDidChange(event)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to