Use more smart pointers.
Pull request: https://github.com/WebKit/WebKit/pull/16748
Committed 266960@main (8d57b55f8d9b): <https://commits.webkit.org/266960@main> Reviewed commits have been landed. Closing PR #16748 and removing active labels.
<rdar://problem/113988462>