Minors optimizations to EventDispatcher::dispatchEvent().
Pull request: https://github.com/WebKit/WebKit/pull/11721
Committed 261906@main (3e45e6390201): <https://commits.webkit.org/261906@main> Reviewed commits have been landed. Closing PR #11721 and removing active labels.
<rdar://problem/106974478>