Adopt more smart pointers in editing code.
Pull request: https://github.com/WebKit/WebKit/pull/18468
Committed 268709@main (d3c6d562070a): <https://commits.webkit.org/268709@main> Reviewed commits have been landed. Closing PR #18468 and removing active labels.
<rdar://problem/116319659>