diff options
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index e3237cc9eb4..2364c1c7f72 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -2609,13 +2609,7 @@ impl Window { layout_chan, layout_rpc, window_size: Cell::new(window_size), - current_viewport: Cell::new(Rect::new( - Point2D::zero(), - Size2D::new( - Au::from_f32_px(window_size.initial_viewport.width.into()), - Au::from_f32_px(window_size.initial_viewport.width.into()), - ), - )), + current_viewport: Cell::new(Rect::zero()), suppress_reflow: Cell::new(true), pending_reflow_count: Default::default(), current_state: Cell::new(WindowState::Alive), |