Adopt more smart pointers in the Element class.
Pull request: https://github.com/WebKit/WebKit/pull/19190
Committed 269449@main (dce93e1455ea): <https://commits.webkit.org/269449@main> Reviewed commits have been landed. Closing PR #19190 and removing active labels.
<rdar://problem/117116530>