Files
ladybird/Libraries/LibWeb/CSS/SelectorEngine.cpp
Andreas Kling b20bbbc6b3 LibWeb: Fast-path simple child-tag :has() matching
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.
2026-04-20 13:20:41 +02:00

83 KiB