LibWeb: Fix underinvalidation of :nth-child using invalidation sets

For all invalidation properties nested into nth-child argument list we
need to invalidate whole subtree to make sure style of sibling elements
will be recalculated.
This commit is contained in:
Aliaksandr Kalenik 2025-01-24 22:48:45 +01:00 committed by Andreas Kling
commit d5a82040e3
Notes: github-actions[bot] 2025-01-25 09:17:24 +00:00
3 changed files with 61 additions and 10 deletions

View file

@ -20,7 +20,7 @@ struct StyleInvalidationData {
HashTable<FlyString> tag_names_used_in_has_selectors;
HashTable<PseudoClass> pseudo_classes_used_in_has_selectors;
InvalidationSet build_invalidation_sets_for_selector(Selector const& selector);
void build_invalidation_sets_for_selector(Selector const& selector);
};
}