diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 127eab08914b..60710009ff56 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -344,7 +344,7 @@ impl LayoutThreadFactory for LayoutThread { background_hang_monitor, constellation_chan, script_chan, - image_cache.clone(), + image_cache, font_cache_thread, time_profiler_chan, mem_profiler_chan.clone(), @@ -560,13 +560,13 @@ impl LayoutThread { is_iframe: is_iframe, port: port, pipeline_port: pipeline_receiver, - script_chan: script_chan.clone(), + script_chan: script_chan, background_hang_monitor, constellation_chan: constellation_chan.clone(), time_profiler_chan: time_profiler_chan, mem_profiler_chan: mem_profiler_chan, registered_painters: RegisteredPaintersImpl(Default::default()), - image_cache: image_cache.clone(), + image_cache: image_cache, font_cache_thread: font_cache_thread, first_reflow: Cell::new(true), font_cache_receiver: font_cache_receiver, @@ -939,8 +939,8 @@ impl LayoutThread { info.pipeline_port, info.background_hang_monitor_register, info.constellation_chan, - info.script_chan.clone(), - info.image_cache.clone(), + info.script_chan, + info.image_cache, self.font_cache_thread.clone(), self.time_profiler_chan.clone(), self.mem_profiler_chan.clone(),