RESOLVED INVALID 147537
Web Inspector: Convert CSSStyleDeclarationSection to ES6 Class
https://bugs.webkit.org/show_bug.cgi?id=147537
Summary Web Inspector: Convert CSSStyleDeclarationSection to ES6 Class
Devin Rousso
Reported 2015-08-02 00:13:55 PDT
The rest of the CSSStyleSidebar classes are ES6 classes except for CSSStyleDeclarationSection. We should change that.
Attachments
Patch (26.55 KB, patch)
2015-08-02 00:45 PDT, Devin Rousso
no flags
Patch (26.88 KB, patch)
2015-08-03 23:09 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2015-08-02 00:45:35 PDT
Joseph Pecoraro
Comment 2 2015-08-03 15:19:38 PDT
Comment on attachment 258027 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=258027&action=review r=me > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js:28 > + constructor(delegate, style) { Style: Treat "constructor" like a method, and put the opening brace on its own line. > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js:33 > + console.assert(style); Nit: I know this is not new, but it is better to assert not just that "style" exists, but that it adheres to some expected type. Perhaps: console.assert(style instanceof WebInspector.CSSStyleDeclaration);
Devin Rousso
Comment 3 2015-08-03 23:09:49 PDT
Joseph Pecoraro
Comment 4 2015-08-03 23:37:35 PDT
Note, if you have already gotten a review, you can put up the new patch with the "reviewed by" line filled in, and just cq+ it for the commit-queue to land.
Devin Rousso
Comment 5 2015-08-03 23:38:05 PDT
(In reply to comment #4) > Note, if you have already gotten a review, you can put up the new patch with > the "reviewed by" line filled in, and just cq+ it for the commit-queue to > land. I did not know that. Thanks for the tip!
Joseph Pecoraro
Comment 6 2015-08-03 23:38:20 PDT
Comment on attachment 258157 [details] Patch r=me
Nikita Vasilyev
Comment 7 2015-08-03 23:40:48 PDT
(In reply to comment #4) > Note, if you have already gotten a review, you can put up the new patch with > the "reviewed by" line filled in, and just cq+ it for the commit-queue to > land. The review dropdown must be left empty. If you set it to "r+", the commit queue will fail.
Timothy Hatcher
Comment 8 2015-08-07 10:09:00 PDT
Comment on attachment 258157 [details] Patch It looks like Brian got this. It is now a class in TOT.
Note You need to log in before you can comment on or make changes to this bug.