Changeset 199678 in webkit


Ignore:
Timestamp:
Apr 18, 2016, 10:28:40 AM (9 years ago)
Author:
timothy@apple.com
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.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r199677 r199678  
     12016-04-18  Timothy Hatcher  <timothy@apple.com>
     2
     3        Web Inspector: NavigationSidebarPanel does a lot of style recalc and layout on busy sites
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=156704
     6        rdar://problem/25778744
     7
     8        Reviewed by Brian Burg.
     9
     10        * UserInterface/Views/NavigationSidebarPanel.js:
     11        (WebInspector.NavigationSidebarPanel):
     12        (WebInspector.NavigationSidebarPanel.prototype._treeElementDisclosureDidChange):
     13        Use _updateContentOverflowShadowVisibilitySoon in more places so the style recalc
     14        and layout changes are coalesced into one action after all rapid fire calls.
     15
    1162016-04-18  Timothy Hatcher  <timothy@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js

    r199169 r199678  
    3434        this._visibleContentTreeOutlines = new Set;
    3535
    36         this.contentView.element.addEventListener("scroll", this._updateContentOverflowShadowVisibility.bind(this));
     36        this.contentView.element.addEventListener("scroll", this._updateContentOverflowShadowVisibilitySoon.bind(this));
    3737
    3838        this._contentTreeOutline = this.createContentTreeOutline(true);
     
    5454        }
    5555
    56         this._boundUpdateContentOverflowShadowVisibility = this._updateContentOverflowShadowVisibility.bind(this);
     56        this._boundUpdateContentOverflowShadowVisibility = this._updateContentOverflowShadowVisibilitySoon.bind(this);
    5757        window.addEventListener("resize", this._boundUpdateContentOverflowShadowVisibility);
    5858
     
    647647    _treeElementDisclosureDidChange(event)
    648648    {
    649         this._updateContentOverflowShadowVisibility();
     649        this._updateContentOverflowShadowVisibilitySoon();
    650650    }
    651651
Note: See TracChangeset for help on using the changeset viewer.