Adopt more smart pointers in BasicShapeFunctions.cpp.
Pull request: https://github.com/WebKit/WebKit/pull/23236
Committed 273527@main (70d899180662): <https://commits.webkit.org/273527@main> Reviewed commits have been landed. Closing PR #23236 and removing active labels.
<rdar://problem/121615022>