Bug 261016

Summary: Add mutation events tests for ContainerNode::replaceChildren and refactor the code
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED WONTFIX    
Severity: Normal CC: commit-queue, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 261766    
Bug Blocks:    

Description Ryosuke Niwa 2023-08-31 22:47:28 PDT
ContainerNode::replaceChildren creates a dummy DocumentFragment during its course of child node replacement logic.
Avoid this unnecessary work.
Comment 1 Ryosuke Niwa 2023-08-31 22:53:25 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17328
Comment 2 Radar WebKit Bug Importer 2023-09-01 00:14:17 PDT
<rdar://problem/114809376>
Comment 3 EWS 2023-09-01 16:13:17 PDT
Committed 267565@main (c177199a72c0): <https://commits.webkit.org/267565@main>

Reviewed commits have been landed. Closing PR #17328 and removing active labels.
Comment 4 WebKit Commit Bot 2023-09-19 12:54:18 PDT
Re-opened since this is blocked by bug 261766