mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-15 03:17:05 +02:00
Avoid the generic relative-selector matcher for child-only tag selectors inside :has(). These selectors can be answered by walking the anchor's direct children and checking the tag match directly, which keeps a very hot path cheaper. Preserve the existing ancestor cache behavior and fall back to the generic matcher for all other selector shapes.
83 KiB
83 KiB