Small performance improvement on really long selector
<rdar://problem/113397883>
Pull request: https://github.com/WebKit/WebKit/pull/16392
Committed 266651@main (c8893f6f23df): <https://commits.webkit.org/266651@main> Reviewed commits have been landed. Closing PR #16392 and removing active labels.