aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_traits/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_traits/lib.rs')
-rw-r--r--components/layout_traits/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs
index b499bef85c6..cfb824f6c98 100644
--- a/components/layout_traits/lib.rs
+++ b/components/layout_traits/lib.rs
@@ -10,6 +10,7 @@
// that these modules won't have to depend on layout.
use crossbeam_channel::{Receiver, Sender};
+use euclid::Size2D;
use gfx::font_cache_thread::FontCacheThread;
use ipc_channel::ipc::{IpcReceiver, IpcSender};
use metrics::PaintTimeMetrics;
@@ -18,7 +19,8 @@ use msg::constellation_msg::{BackgroundHangMonitorRegister, PipelineId};
use net_traits::image_cache::ImageCache;
use profile_traits::{mem, time};
use script_traits::LayoutMsg as ConstellationMsg;
-use script_traits::{ConstellationControlMsg, LayoutControlMsg, WindowSizeData};
+use script_traits::{ConstellationControlMsg, LayoutControlMsg};
+use servo_geometry::DeviceIndependentPixel;
use servo_url::ServoUrl;
use std::sync::atomic::AtomicBool;
use std::sync::Arc;
@@ -46,7 +48,8 @@ pub trait LayoutThreadFactory {
paint_time_metrics: PaintTimeMetrics,
busy: Arc<AtomicBool>,
load_webfonts_synchronously: bool,
- window_size: WindowSizeData,
+ initial_window_size: Size2D<u32, DeviceIndependentPixel>,
+ device_pixels_per_px: Option<f32>,
dump_display_list: bool,
dump_display_list_json: bool,
dump_style_tree: bool,