layout: Make animations work... more or less.

There's some maths I've done wrong, but it DOES animate some things, though
they're only triggered past the first restyle, and we probably have some
duplications where the animations arrive to layout.

Anyway, got to go.
This commit is contained in:
Emilio Cobos Álvarez 2016-06-20 17:30:43 +02:00
parent c16c5acade
commit bc970596d6
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 77 additions and 27 deletions

View file

@ -1307,7 +1307,8 @@ impl LayoutThread {
self.profiler_metadata(),
self.time_profiler_chan.clone(),
|| {
animation::recalc_style_for_animations(flow_ref::deref_mut(&mut root_flow),
animation::recalc_style_for_animations(&layout_context,
flow_ref::deref_mut(&mut root_flow),
&mut animations)
});
}