layout: Tie transitions to the DOM node and finish them instantly when

new styles are set.

Tying transitions to the DOM node avoids quadratic complexity when
updating them.

Finishing transitions instantly when styles are updated makes our
behavior more correct.
This commit is contained in:
Patrick Walton 2015-08-01 10:13:21 -07:00
parent 92cbb93684
commit 7349b6ac28
5 changed files with 90 additions and 49 deletions

View file

@ -126,6 +126,9 @@ pub struct SharedLayoutContext {
/// The visible rects for each layer, as reported to us by the compositor.
pub visible_rects: Arc<HashMap<LayerId, Rect<Au>, DefaultState<FnvHasher>>>,
/// The animations that are currently running.
pub running_animations: Arc<HashMap<OpaqueNode,Vec<Animation>>>,
/// Why is this reflow occurring
pub goal: ReflowGoal,
}