mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Changes Stylist::set_device to check for mediaqueries in Stylesheets
This commit is contained in:
parent
c1eb6ae295
commit
325271ec83
1 changed files with 5 additions and 0 deletions
|
@ -458,6 +458,11 @@ impl Stylist {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
self.is_device_dirty |= stylesheets.iter().any(|stylesheet| {
|
self.is_device_dirty |= stylesheets.iter().any(|stylesheet| {
|
||||||
|
let mq = stylesheet.media.read();
|
||||||
|
if mq.evaluate(&self.device) != mq.evaluate(&device) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
mq_eval_changed(&stylesheet.rules.read().0, &self.device, &device)
|
mq_eval_changed(&stylesheet.rules.read().0, &self.device, &device)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue