Use more smart pointers in the DOM.
Pull request: https://github.com/WebKit/WebKit/pull/18049
Committed 268329@main (0f2b0e3c5b56): <https://commits.webkit.org/268329@main> Reviewed commits have been landed. Closing PR #18049 and removing active labels.
<rdar://problem/115907227>