Web Inspector: Use initialLayout for Settings tab
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 May 2017 18:02:32 +0000 (18:02 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 May 2017 18:02:32 +0000 (18:02 +0000)
commita15166ff903249a9e6a3109a84a97b6547ac3cc8
tree001b186e810baa6173ede78f734e422108709d91
parent20ee6b353decb6da6444bdf739ece63398eb60ef
Web Inspector: Use initialLayout for Settings tab
https://bugs.webkit.org/show_bug.cgi?id=172304

Reviewed by Matt Baker.

* UserInterface/Views/GeneralSettingsView.js:
(WebInspector.GeneralSettingsView.prototype.initialLayout):
Move listener for zoom factor to only update that editor.

* UserInterface/Views/SettingsTabContentView.js:
(WebInspector.SettingsTabContentView):
(WebInspector.SettingsTabContentView.prototype.initialLayout): Added.
It is not necessary to create the UI for editing settings until the Settings tab is shown.
Use initialLayout to ensure UI gets created exactly once, after the tab is selected.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/GeneralSettingsView.js
Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js