Use more smart pointers in EventPath and related code.
Pull request: https://github.com/WebKit/WebKit/pull/3596
Committed 253717@main (02c9408f825d): <https://commits.webkit.org/253717@main> Reviewed commits have been landed. Closing PR #3596 and removing active labels.
<rdar://problem/99069971>