Use more smart pointers in StyleScope.h.
Pull request: https://github.com/WebKit/WebKit/pull/18111
Committed 268375@main (207c7c9d8ebd): <https://commits.webkit.org/268375@main> Reviewed commits have been landed. Closing PR #18111 and removing active labels.
<rdar://problem/115965444>