mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
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:
parent
f08e01c5d9
commit
d5a82040e3
Notes:
github-actions[bot]
2025-01-25 09:17:24 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: d5a82040e3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3360
Reviewed-by: https://github.com/awesomekling
3 changed files with 61 additions and 10 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue