RESOLVED FIXED 147658
Web Inspector: Convert miscellaneous view widgets to use ES6 classes
https://bugs.webkit.org/show_bug.cgi?id=147658
Summary Web Inspector: Convert miscellaneous view widgets to use ES6 classes
Blaze Burg
Reported 2015-08-04 15:45:10 PDT
Toolbar, ContentBrowser, and whatever else is left.
Attachments
Proposed Fix (96.11 KB, patch)
2015-08-04 17:43 PDT, Blaze Burg
joepeck: review+
Blaze Burg
Comment 1 2015-08-04 17:43:50 PDT
Created attachment 258245 [details] Proposed Fix
Joseph Pecoraro
Comment 2 2015-08-04 22:20:24 PDT
Comment on attachment 258245 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=258245&action=review r=me > Source/WebInspectorUI/UserInterface/Base/Test.js:112 > + constructor() > + { > + super(); > + } Just drop this constructor so we can test "default constructor" behavior of JSC. > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js:-2 > - * Copyright (C) 2013 Apple Inc. All rights reserved. I believe Devin just put up a patch for this class. Perhaps your patch can just supersede it. > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js:34 > + console.assert(style); Nit: instanceof. > Source/WebInspectorUI/UserInterface/Views/ContentBrowser.js:85 > + } > // Public Style: Empty line. > Source/WebInspectorUI/UserInterface/Views/QuickConsoleNavigationBar.js:31 > + constructor(element, navigationItems) > + { > + super(element, navigationItems); > + } Nit: I think this could be the default constructor. Would be a very good test for JavaScriptCore to just drop this constructor!
Blaze Burg
Comment 3 2015-08-05 11:24:31 PDT
Note You need to log in before you can comment on or make changes to this bug.