Remove LayoutTaskData::image_cache_task.

This commit is contained in:
Ms2ger 2015-11-06 14:53:07 +01:00
parent be178c0e5e
commit 880fb9be0b

View file

@ -97,9 +97,6 @@ pub struct LayoutTaskData {
/// The root of the flow tree. /// The root of the flow tree.
pub root_flow: Option<FlowRef>, pub root_flow: Option<FlowRef>,
/// The image cache.
pub image_cache_task: ImageCacheTask,
/// The channel on which messages can be sent to the constellation. /// The channel on which messages can be sent to the constellation.
pub constellation_chan: ConstellationChan, pub constellation_chan: ConstellationChan,
@ -425,7 +422,7 @@ impl LayoutTask {
paint_chan: paint_chan, paint_chan: paint_chan,
time_profiler_chan: time_profiler_chan, time_profiler_chan: time_profiler_chan,
mem_profiler_chan: mem_profiler_chan, mem_profiler_chan: mem_profiler_chan,
image_cache_task: image_cache_task.clone(), image_cache_task: image_cache_task,
font_cache_task: font_cache_task, font_cache_task: font_cache_task,
first_reflow: true, first_reflow: true,
image_cache_receiver: image_cache_receiver, image_cache_receiver: image_cache_receiver,
@ -438,7 +435,6 @@ impl LayoutTask {
rw_data: Arc::new(Mutex::new( rw_data: Arc::new(Mutex::new(
LayoutTaskData { LayoutTaskData {
root_flow: None, root_flow: None,
image_cache_task: image_cache_task,
constellation_chan: constellation_chan, constellation_chan: constellation_chan,
viewport_size: Size2D::new(Au(0), Au(0)), viewport_size: Size2D::new(Au(0), Au(0)),
stacking_context: None, stacking_context: None,
@ -480,7 +476,7 @@ impl LayoutTask {
goal: ReflowGoal) goal: ReflowGoal)
-> SharedLayoutContext { -> SharedLayoutContext {
SharedLayoutContext { SharedLayoutContext {
image_cache_task: rw_data.image_cache_task.clone(), image_cache_task: self.image_cache_task.clone(),
image_cache_sender: Mutex::new(self.image_cache_sender.clone()), image_cache_sender: Mutex::new(self.image_cache_sender.clone()),
viewport_size: rw_data.viewport_size.clone(), viewport_size: rw_data.viewport_size.clone(),
screen_size_changed: screen_size_changed, screen_size_changed: screen_size_changed,