Make more use of smart pointers.
Pull request: https://github.com/WebKit/WebKit/pull/17141
Committed 267388@main (232c6fa7a77f): <https://commits.webkit.org/267388@main> Reviewed commits have been landed. Closing PR #17141 and removing active labels.
<rdar://problem/114606871>