aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-01-22 23:50:40 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-01-23 00:57:54 +0100
commit104f5c2553606d0b26d7cf2ad9b90eb2efd94792 (patch)
tree29cc44fdafc5dcfac9a41acacc62d0bb6a3639fd /components/layout_thread/lib.rs
parent5ac12b5df4406dbde1ceeb6be36be5c3162401a2 (diff)
downloadservo-104f5c2553606d0b26d7cf2ad9b90eb2efd94792.tar.gz
servo-104f5c2553606d0b26d7cf2ad9b90eb2efd94792.zip
style: Derive debug for CascadeInputs.
It no longer has anything than rules.
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs25
1 files changed, 15 insertions, 10 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 3fb7d0c8c73..fcd790fe6ec 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -1491,8 +1491,11 @@ impl LayoutThread {
self.profiler_metadata(),
self.time_profiler_chan.clone(),
|| {
- animation::recalc_style_for_animations(
- &layout_context, FlowRef::deref_mut(&mut root_flow), &animations)
+ animation::recalc_style_for_animations::<ServoLayoutElement>(
+ &layout_context,
+ FlowRef::deref_mut(&mut root_flow),
+ &animations,
+ )
});
}
self.perform_post_style_recalc_layout_passes(&mut root_flow,
@@ -1522,14 +1525,16 @@ impl LayoutThread {
.as_mut()
.map(|nodes| &mut **nodes);
// Kick off animations if any were triggered, expire completed ones.
- animation::update_animation_state(&self.constellation_chan,
- &self.script_chan,
- &mut *self.running_animations.write(),
- &mut *self.expired_animations.write(),
- newly_transitioning_nodes,
- &self.new_animations_receiver,
- self.id,
- &self.timer);
+ animation::update_animation_state::<ServoLayoutElement>(
+ &self.constellation_chan,
+ &self.script_chan,
+ &mut *self.running_animations.write(),
+ &mut *self.expired_animations.write(),
+ newly_transitioning_nodes,
+ &self.new_animations_receiver,
+ self.id,
+ &self.timer,
+ );
}
profile(time::ProfilerCategory::LayoutRestyleDamagePropagation,