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.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs
index 9fb431c8e2e..0cea8397f7e 100644
--- a/components/layout_traits/lib.rs
+++ b/components/layout_traits/lib.rs
@@ -4,17 +4,6 @@
#![deny(unsafe_code)]
-extern crate gfx;
-extern crate ipc_channel;
-extern crate metrics;
-extern crate msg;
-extern crate net_traits;
-extern crate profile_traits;
-extern crate script_traits;
-extern crate servo_channel;
-extern crate servo_url;
-extern crate webrender_api;
-
// This module contains traits in layout used generically
// in the rest of Servo.
// The traits are here instead of in layout so
@@ -32,6 +21,7 @@ use script_traits::{ConstellationControlMsg, LayoutControlMsg};
use servo_channel::{Receiver, Sender};
use servo_url::ServoUrl;
use std::sync::Arc;
+use webrender_api;
// A static method creating a layout thread
// Here to remove the compositor -> layout dependency
@@ -46,7 +36,7 @@ pub trait LayoutThreadFactory {
pipeline_port: IpcReceiver<LayoutControlMsg>,
constellation_chan: IpcSender<ConstellationMsg>,
script_chan: IpcSender<ConstellationControlMsg>,
- image_cache: Arc<ImageCache>,
+ image_cache: Arc<dyn ImageCache>,
font_cache_thread: FontCacheThread,
time_profiler_chan: time::ProfilerChan,
mem_profiler_chan: mem::ProfilerChan,