| Summary: | Web Inspector: Convert CSSStyleDeclarationSection to ES6 Class | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||||
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> | ||||||
| Status: | RESOLVED INVALID | ||||||||
| Severity: | Normal | CC: | graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Devin Rousso
2015-08-02 00:13:55 PDT
Created attachment 258027 [details]
Patch
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); Created attachment 258157 [details]
Patch
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. (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! Comment on attachment 258157 [details]
Patch
r=me
(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. Comment on attachment 258157 [details]
Patch
It looks like Brian got this. It is now a class in TOT.
|