Call parentNode() instead of parentOrShadowHostNode() on Node types that cannot be shadow roots. This avoids a shadow root check.
Pull request: https://github.com/WebKit/WebKit/pull/11413
Committed 261601@main (9a64c570c29a): <https://commits.webkit.org/261601@main> Reviewed commits have been landed. Closing PR #11413 and removing active labels.
<rdar://problem/106672502>