| Summary: | Web Inspector: Start using Node.prototype.append | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Nikita Vasilyev <nvasilyev> | ||||
| Component: | Web Inspector | Assignee: | Nikita Vasilyev <nvasilyev> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=147302 | ||||||
| Attachments: |
|
||||||
|
Description
Nikita Vasilyev
2015-07-25 21:06:34 PDT
Created attachment 257527 [details]
Patch
Comment on attachment 257527 [details] Patch Clearing flags on attachment: 257527 Committed r187402: <http://trac.webkit.org/changeset/187402> All reviewed patches have been landed. Closing bug. Comment on attachment 257527 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257527&action=review Nice! > Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:399 > checkboxLabel.appendChild(checkboxElement); > - checkboxLabel.appendChild(document.createTextNode(this._sourceCodeLocation.displayLocationString())); > + checkboxLabel.append(this._sourceCodeLocation.displayLocationString()); Cases like this, where we have multiple appends in a row, we can reduce to a single append call: From: checkboxLabel.appendChild(checkboxElement); checkboxLabel.append(text); To: checkboxLabel.append(checkboxElement, text); > Source/WebInspectorUI/UserInterface/Views/BoxModelDetailsSectionRow.js:219 > + boxElement.append(widthElement, " \u00D7 ", heightElement); Which I see you did here. > Source/WebInspectorUI/UserInterface/Views/CSSStyleDetailsSidebarPanel.js:59 > labelElement.appendChild(checkboxElement); > - labelElement.appendChild(document.createTextNode(label)); > + labelElement.append(label); Another case. |