Allow mutation of CssRules

This commit is contained in:
Manish Goregaokar 2016-11-14 15:37:48 -08:00
parent 71a2b379c8
commit 2fe390e237
5 changed files with 11 additions and 10 deletions

View file

@ -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;