mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
LibWeb/CSS: Take AbstractElement in for_each_matching_rules()
This commit is contained in:
parent
cdc4f7c989
commit
fa790e5095
Notes:
github-actions[bot]
2025-09-11 16:47:12 +00:00
Author: https://github.com/AtkinsSJ
Commit: fa790e5095
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6118
3 changed files with 13 additions and 13 deletions
|
@ -1845,9 +1845,9 @@ void Document::invalidate_style_for_elements_affected_by_pseudo_class_change(CSS
|
|||
return false;
|
||||
};
|
||||
|
||||
auto matches_different_set_of_rules_after_state_change = [&](Element const& element) {
|
||||
auto matches_different_set_of_rules_after_state_change = [&](Element& element) {
|
||||
bool result = false;
|
||||
rules.for_each_matching_rules(element, {}, [&](auto& rules) {
|
||||
rules.for_each_matching_rules({ element }, [&](auto& rules) {
|
||||
for (auto& rule : rules) {
|
||||
bool before = does_rule_match_on_element(element, rule);
|
||||
TemporaryChange change { element_slot, node };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue