diff options
author | Ms2ger <Ms2ger@gmail.com> | 2015-11-04 11:08:46 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2015-11-04 11:08:46 +0100 |
commit | 631180b3195b3fc7e1de9b596d7d062862a57f49 (patch) | |
tree | bb794caeb2311b1e8eb76ac5d961edcf89f4b348 /components/layout/layout_task.rs | |
parent | b6850853da5fc677ecfa15d273159371a909ac6c (diff) | |
download | servo-631180b3195b3fc7e1de9b596d7d062862a57f49.tar.gz servo-631180b3195b3fc7e1de9b596d7d062862a57f49.zip |
Remove unused LayoutTaskData::screen_size.
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index c86ecdedaff..2ddf7e48ab3 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -109,9 +109,6 @@ pub struct LayoutTaskData { /// The channel on which messages can be sent to the constellation. pub constellation_chan: ConstellationChan, - /// The size of the screen. - pub screen_size: Size2D<Au>, - /// The size of the viewport. This may be different from the size of the screen due to viewport /// constraints. pub viewport_size: Size2D<Au>, @@ -350,7 +347,6 @@ impl LayoutTask { time_profiler_chan: time::ProfilerChan, mem_profiler_chan: mem::ProfilerChan) -> LayoutTask { - let screen_size = Size2D::new(Au(0), Au(0)); let device = Device::new( MediaType::Screen, opts::get().initial_window_size.as_f32() * ScaleFactor::new(1.0)); @@ -411,8 +407,7 @@ impl LayoutTask { root_flow: None, image_cache_task: image_cache_task, constellation_chan: constellation_chan, - screen_size: screen_size, - viewport_size: screen_size, + viewport_size: Size2D::new(Au(0), Au(0)), stacking_context: None, stylist: stylist, parallel_traversal: parallel_traversal, @@ -1159,7 +1154,6 @@ impl LayoutTask { let old_viewport_size = rw_data.viewport_size; let current_screen_size = Size2D::new(Au::from_f32_px(initial_viewport.width.get()), Au::from_f32_px(initial_viewport.height.get())); - rw_data.screen_size = current_screen_size; // Calculate the actual viewport as per DEVICE-ADAPT § 6 let device = Device::new(MediaType::Screen, initial_viewport); |