REGRESSION (r203253): Node details sidebar flickers while resizing
authormattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 7 Aug 2016 01:50:34 +0000 (01:50 +0000)
committermattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 7 Aug 2016 01:50:34 +0000 (01:50 +0000)
commit81e335ff8fa535f53703d9a31089d99051ecb19b
tree893f9375fbdd340258dce589576b63a6dfaa8a93
parent952642840d9c2d5797614e604c5934834a67ecee
REGRESSION (r203253): Node details sidebar flickers while resizing
https://bugs.webkit.org/show_bug.cgi?id=160631
<rdar://problem/27733024>

Reviewed by Timothy Hatcher.

Sidebar panel layouts can be expensive, and should be performed only
when necessary (i.e., when the panel is shown for the first time, or
model data changed while the panel was hidden).

* UserInterface/Views/Sidebar.js:
(WebInspector.Sidebar.prototype._recalculateWidth):

* UserInterface/Views/SidebarPanel.js:
(WebInspector.SidebarPanel.prototype.shown):

* UserInterface/Views/View.js:
(WebInspector.View.prototype.updateLayoutIfNeeded):
Update the layout if an initial layout was never performed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/Sidebar.js
Source/WebInspectorUI/UserInterface/Views/SidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/View.js