Summary: | Web Inspector: Convert sidebars to use View base class | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Matt Baker <mattbaker> | ||||||
Component: | Web Inspector | Assignee: | Matt Baker <mattbaker> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Matt Baker
2015-11-09 15:38:26 PST
To reduce the scope of this patch, improvements to sidebar details sections will be tracked under a separate issue: https://bugs.webkit.org/show_bug.cgi?id=151126. Created attachment 265262 [details]
[Patch] Proposed Fix
Comment on attachment 265262 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=265262&action=review > Source/WebInspectorUI/UserInterface/Views/Sidebar.js:203 > + this._collapsed = flag; flag || false; > Source/WebInspectorUI/UserInterface/Views/Sidebar.js:205 > + this.element.classList.add(WebInspector.Sidebar.CollapsedStyleClassName); These lines can be replaced with classList.toggle(). > Source/WebInspectorUI/UserInterface/Views/SidebarPanel.js:75 > + this._selected = flag; flag || false; > Source/WebInspectorUI/UserInterface/Views/SidebarPanel.js:76 > + this.element.classList.toggle("selected"); Would be safer to pass _selected as the second argument to toggle. > Source/WebInspectorUI/UserInterface/Views/SidebarPanel.js:81 > + return this.parentView; Nice! Created attachment 265317 [details]
[Patch] Proposed Fix
Comment on attachment 265317 [details] [Patch] Proposed Fix Clearing flags on attachment: 265317 Committed r192327: <http://trac.webkit.org/changeset/192327> All reviewed patches have been landed. Closing bug. |