diff options
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r-- | components/layout/context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs index c97d14a2ed2..601e8118cb4 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -15,7 +15,7 @@ use euclid::{Rect, Size2D}; use gfx::display_list::OpaqueNode; use gfx::font_cache_task::FontCacheTask; use gfx::font_context::FontContext; -use ipc_channel::ipc::IpcSender; +use ipc_channel::ipc::{self, IpcSender}; use msg::constellation_msg::ConstellationChan; use net_traits::image::base::Image; use net_traits::image_cache_task::{ImageCacheChan, ImageCacheTask, ImageResponse, ImageState}; @@ -192,7 +192,7 @@ impl<'a> LayoutContext<'a> { (ImageState::LoadError, _) => None, // Not loaded, test mode - load the image synchronously (_, true) => { - let (sync_tx, sync_rx) = channel(); + let (sync_tx, sync_rx) = ipc::channel().unwrap(); self.shared.image_cache_task.request_image(url, ImageCacheChan(sync_tx), None); |