diff options
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 96042083d39..63d3818d5b1 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -57,7 +57,7 @@ use msg::constellation_msg::{FrameId, FrameType, Key, KeyModifiers, KeyState}; use msg::constellation_msg::{PipelineId, PipelineNamespaceId, TraversalDirection}; use net_traits::{ReferrerPolicy, ResourceThreads}; use net_traits::image::base::Image; -use net_traits::image_cache_thread::ImageCacheThread; +use net_traits::image_cache::ImageCache; use net_traits::response::HttpsState; use net_traits::storage_thread::StorageType; use profile_traits::mem; @@ -67,6 +67,7 @@ use servo_url::ImmutableOrigin; use servo_url::ServoUrl; use std::collections::HashMap; use std::fmt; +use std::sync::Arc; use std::sync::mpsc::{Receiver, Sender}; use style_traits::{CSSPixel, UnsafeNode}; use webdriver_msg::{LoadStatus, WebDriverScriptCommand}; @@ -483,8 +484,8 @@ pub struct InitialScriptState { pub resource_threads: ResourceThreads, /// A channel to the bluetooth thread. pub bluetooth_thread: IpcSender<BluetoothRequest>, - /// A channel to the image cache thread. - pub image_cache_thread: ImageCacheThread, + /// The image cache for this script thread. + pub image_cache: Arc<ImageCache>, /// A channel to the time profiler thread. pub time_profiler_chan: profile_traits::time::ProfilerChan, /// A channel to the memory profiler thread. |