Use more smart pointers in editing code.
Pull request: https://github.com/WebKit/WebKit/pull/17992
Committed 268286@main (46e64865e4ed): <https://commits.webkit.org/268286@main> Reviewed commits have been landed. Closing PR #17992 and removing active labels.
<rdar://problem/115868359>