Adopt more smart pointers in ImageControlsMac.cpp.
Pull request: https://github.com/WebKit/WebKit/pull/23047
Committed 273308@main (fcb692633ae1): <https://commits.webkit.org/273308@main> Reviewed commits have been landed. Closing PR #23047 and removing active labels.
<rdar://problem/121385549>