Changeset 199678 in webkit
- Timestamp:
- Apr 18, 2016, 10:28:40 AM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r199677 r199678 1 2016-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 1 16 2016-04-18 Timothy Hatcher <timothy@apple.com> 2 17 -
trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js
r199169 r199678 34 34 this._visibleContentTreeOutlines = new Set; 35 35 36 this.contentView.element.addEventListener("scroll", this._updateContentOverflowShadowVisibility .bind(this));36 this.contentView.element.addEventListener("scroll", this._updateContentOverflowShadowVisibilitySoon.bind(this)); 37 37 38 38 this._contentTreeOutline = this.createContentTreeOutline(true); … … 54 54 } 55 55 56 this._boundUpdateContentOverflowShadowVisibility = this._updateContentOverflowShadowVisibility .bind(this);56 this._boundUpdateContentOverflowShadowVisibility = this._updateContentOverflowShadowVisibilitySoon.bind(this); 57 57 window.addEventListener("resize", this._boundUpdateContentOverflowShadowVisibility); 58 58 … … 647 647 _treeElementDisclosureDidChange(event) 648 648 { 649 this._updateContentOverflowShadowVisibility ();649 this._updateContentOverflowShadowVisibilitySoon(); 650 650 } 651 651
Note:
See TracChangeset
for help on using the changeset viewer.