Make use of more smart pointers.
Pull request: https://github.com/WebKit/WebKit/pull/17170
Committed 267423@main (616b80d26c47): <https://commits.webkit.org/267423@main> Reviewed commits have been landed. Closing PR #17170 and removing active labels.
<rdar://problem/114661020>