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