mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
639fdd6b12
commit
0a82d68f3e
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ impl<Impl: SelectorImplExt> Stylist<Impl> {
|
|||
.flat_map(|s| s.effective_rules(&self.device).viewport())
|
||||
.cascade();
|
||||
|
||||
self.viewport_constraints = ViewportConstraints::maybe_new(self.device.viewport_size, &cascaded_rule);
|
||||
self.viewport_constraints = ViewportConstraints::maybe_new(device.viewport_size, &cascaded_rule);
|
||||
if let Some(ref constraints) = self.viewport_constraints {
|
||||
device = Device::new(MediaType::Screen, constraints.size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue