Bug 147303 - Web Inspector: Start using Node.prototype.replaceWith
Summary: Web Inspector: Start using Node.prototype.replaceWith
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-07-25 21:58 PDT by Nikita Vasilyev
Modified: 2015-07-25 23:21 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.87 KB, patch)
2015-07-25 21:59 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.