mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
fixup! Checks moved to Element::client_rect(), fixed conditions for the special cases, reconfigured Window constructor to initialize current_viewport to initial window size
This commit is contained in:
parent
7c61c5b930
commit
34762d97ad
2 changed files with 14 additions and 27 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue