aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-11-06 14:53:07 +0100
committerMs2ger <Ms2ger@gmail.com>2015-11-09 09:03:57 +0100
commit880fb9be0b4c121289be98183bf5dcc10b2d7ea5 (patch)
treed9a9ba3447cc6e9ded1636924eb2ad8ced8fd93d /components
parentbe178c0e5e7cf32eac78542975951d8517b0cd61 (diff)
downloadservo-880fb9be0b4c121289be98183bf5dcc10b2d7ea5.tar.gz
servo-880fb9be0b4c121289be98183bf5dcc10b2d7ea5.zip
Remove LayoutTaskData::image_cache_task.
Diffstat (limited to 'components')
-rw-r--r--components/layout/layout_task.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs
index 7faf3a6db77..5f3c3c9a3c0 100644
--- a/components/layout/layout_task.rs
+++ b/components/layout/layout_task.rs
@@ -97,9 +97,6 @@ pub struct LayoutTaskData {
/// The root of the flow tree.
pub root_flow: Option<FlowRef>,
- /// The image cache.
- pub image_cache_task: ImageCacheTask,
-
/// The channel on which messages can be sent to the constellation.
pub constellation_chan: ConstellationChan,
@@ -425,7 +422,7 @@ impl LayoutTask {
paint_chan: paint_chan,
time_profiler_chan: time_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,
first_reflow: true,
image_cache_receiver: image_cache_receiver,
@@ -438,7 +435,6 @@ impl LayoutTask {
rw_data: Arc::new(Mutex::new(
LayoutTaskData {
root_flow: None,
- image_cache_task: image_cache_task,
constellation_chan: constellation_chan,
viewport_size: Size2D::new(Au(0), Au(0)),
stacking_context: None,
@@ -480,7 +476,7 @@ impl LayoutTask {
goal: ReflowGoal)
-> 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()),
viewport_size: rw_data.viewport_size.clone(),
screen_size_changed: screen_size_changed,