mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #8496 - notriddle:master, r=jdm
Fix #8443 When there are viewport constraints, use the new window size to compute the viewport instead of the old one. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8496) <!-- Reviewable:end -->
This commit is contained in:
commit
210a243137
5 changed files with 48 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