Add a temporary (style resolution/invalidation scoped) cache that remembers whether a given :has() argument has any matches in a subtree.
Created attachment 445410 [details]
Comment on attachment 445410 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=445410&action=review
> - // FIXME: This is almost the worst possible implementation in terms of performance.
> + // FIXME: This could be better in terms of performance.
Created attachment 445422 [details]
Patch for landing
Committed r286302 (244661@main): <https://commits.webkit.org/244661@main>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 445422 [details].