Initial window sizes are mandatory.

This commit is contained in:
Josh Matthews 2018-12-09 14:16:14 -05:00
parent 34e77f62af
commit 231a37be24
12 changed files with 101 additions and 130 deletions

View file

@ -194,7 +194,7 @@ impl HTMLIFrameElement {
load_data: load_data.unwrap(),
pipeline_port: pipeline_receiver,
content_process_shutdown_chan: None,
window_size: Some(WindowSizeData {
window_size: WindowSizeData {
initial_viewport: {
let rect = self.upcast::<Node>().bounding_content_box_or_zero();
TypedSize2D::new(
@ -203,7 +203,7 @@ impl HTMLIFrameElement {
)
},
device_pixel_ratio: window.device_pixel_ratio(),
}),
},
layout_threads: PREFS.get("layout.threads").as_u64().expect("count") as usize,
};