mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Allow mutation of CssRules
This commit is contained in:
parent
71a2b379c8
commit
2fe390e237
5 changed files with 11 additions and 10 deletions
|
@ -380,7 +380,7 @@ impl Stylist {
|
|||
return true
|
||||
}
|
||||
}
|
||||
mq_eval_changed(&rules, before, after)
|
||||
mq_eval_changed(rules, before, after)
|
||||
}) {
|
||||
return true
|
||||
}
|
||||
|
@ -388,7 +388,7 @@ impl Stylist {
|
|||
false
|
||||
}
|
||||
self.is_device_dirty |= stylesheets.iter().any(|stylesheet| {
|
||||
mq_eval_changed(&stylesheet.rules.0, &self.device, &device)
|
||||
mq_eval_changed(&stylesheet.rules.0.read(), &self.device, &device)
|
||||
});
|
||||
|
||||
self.device = device;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue