Bug 147303

Summary: Web Inspector: Start using Node.prototype.replaceWith
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: 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   
Attachments:
Description Flags
Patch none

Description Nikita Vasilyev 2015-07-25 21:58:06 PDT
https://bugs.webkit.org/show_bug.cgi?id=74648 introduced Node.prototype.replaceWith, among a few other new DOM methods.

Convert the following code:

    baseElem.replaceChild(newElem, refElem)

to

    refElem.replaceWith(newElem)
Comment 1 Radar WebKit Bug Importer 2015-07-25 21:58:17 PDT
<rdar://problem/22000455>
Comment 2 Nikita Vasilyev 2015-07-25 21:59:46 PDT
Created attachment 257528 [details]
Patch
Comment 3 WebKit Commit Bot 2015-07-25 23:21:12 PDT
Comment on attachment 257528 [details]
Patch

Clearing flags on attachment: 257528

Committed r187403: <http://trac.webkit.org/changeset/187403>
Comment 4 WebKit Commit Bot 2015-07-25 23:21:16 PDT
All reviewed patches have been landed.  Closing bug.