Files
ladybird/Libraries/LibWeb/CSS/StyleScope.cpp
Aliaksandr Kalenik 345cc022a2 LibWeb: Deduplicate :has() ancestor invalidation
When multiple descendant nodes change in one style invalidation cycle,
invalidate_style_of_elements_affected_by_has() walks from each pending
node up to all ancestors. Since ancestor paths converge going up, the
same ancestor elements get processed repeatedly, causing redundant
invalidate_style_if_affected_by_has() calls.
2026-03-10 21:37:17 +01:00

21 KiB