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] Patch
Comment on attachment 445410 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445410&action=review > Source/WebCore/css/SelectorChecker.cpp:1252 > - // FIXME: This is almost the worst possible implementation in terms of performance. > + // FIXME: This could be better in terms of performance. NIce.
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].
<rdar://problem/85871354>