RESOLVED FIXED 143108
Web Inspector: Convert sidebar classes to ES6
https://bugs.webkit.org/show_bug.cgi?id=143108
Summary Web Inspector: Convert sidebar classes to ES6
Timothy Hatcher
Reported 2015-03-26 11:44:40 PDT
The sidebar classes are easy to convert and working fine.
Attachments
Patch (220.73 KB, patch)
2015-03-26 11:47 PDT, Timothy Hatcher
joepeck: review+
joepeck: commit-queue-
Patch (Ignore Space) (136.82 KB, patch)
2015-03-26 11:48 PDT, Timothy Hatcher
no flags
Radar WebKit Bug Importer
Comment 1 2015-03-26 11:45:09 PDT
Timothy Hatcher
Comment 2 2015-03-26 11:47:15 PDT
Timothy Hatcher
Comment 3 2015-03-26 11:48:19 PDT
Created attachment 249504 [details] Patch (Ignore Space)
Joseph Pecoraro
Comment 4 2015-03-26 12:08:42 PDT
Comment on attachment 249504 [details] Patch (Ignore Space) View in context: https://bugs.webkit.org/attachment.cgi?id=249504&action=review r=me > Source/WebInspectorUI/UserInterface/Views/ApplicationCacheDetailsSidebarPanel.js:140 > +WebInspector.ApplicationCacheDetailsSidebarPanel.StyleClassName = "application-cache"; For single use StyleClassName's I've inlining them. Donno if you feel the same, but this feels really verbose for little benefit. > Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js:36 > - this.element.classList.add(WebInspector.DOMNodeDetailsSidebarPanel.StyleClassName); > + this.element.classList.add("dom-node"); I see sometimes you have been doing this as well. > Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js:589 > + console.log(attribute.name, attribute.value); > + > var node = new WebInspector.DataGridNode({name: attribute.name, value: attribute.value || ""}, false); > + console.log(node); Looks like debug logging we should remove. > Source/WebInspectorUI/UserInterface/Views/Sidebar.js:274 > + CollapsedStateDidChange: "sidebar-sidebar-collapsed-state-did-change", Compared to the others, this one has an extra "sidebar-".
Timothy Hatcher
Comment 5 2015-03-26 16:39:28 PDT
Note You need to log in before you can comment on or make changes to this bug.