Adopt more smart pointers in AdvanceInternalState.
Pull request: https://github.com/WebKit/WebKit/pull/19753
Committed 270009@main (62b32c741b5a): <https://commits.webkit.org/270009@main> Reviewed commits have been landed. Closing PR #19753 and removing active labels.
<rdar://problem/117741908>