mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Set the dirty flag of DeclarationBlock when the DeclarationBlock is modified and clear the flag when it's resyled.
This commit is contained in:
parent
011a7adf56
commit
636c47da29
3 changed files with 16 additions and 0 deletions
|
@ -1019,6 +1019,7 @@ pub trait MatchMethods : TElement {
|
|||
&mut matching_context,
|
||||
&mut set_selector_flags);
|
||||
}
|
||||
self.unset_dirty_style_attribute();
|
||||
|
||||
let primary_rule_node = stylist.rule_tree().compute_rule_node(
|
||||
&mut applicable_declarations,
|
||||
|
@ -1301,6 +1302,7 @@ pub trait MatchMethods : TElement {
|
|||
result |= replace_rule_node(CascadeLevel::StyleAttributeImportant,
|
||||
style_attribute,
|
||||
primary_rules);
|
||||
self.unset_dirty_style_attribute();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue