diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-05-05 12:54:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-05 12:54:15 -0400 |
commit | 719e4e37e9d38df0bc646d6b04abec138e4d20b4 (patch) | |
tree | 6aae15771bda5dcb7002263674c3fc042ac1f0ed /components/layout/animation.rs | |
parent | f108b12fc45983b561f8e0db1771db2392dfd0ed (diff) | |
parent | 16815bf97fd5a6d84ff03faa8cfaffddd24ca9ef (diff) | |
download | servo-719e4e37e9d38df0bc646d6b04abec138e4d20b4.tar.gz servo-719e4e37e9d38df0bc646d6b04abec138e4d20b4.zip |
Auto merge of #20751 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.
See each commit for details.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20751)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r-- | components/layout/animation.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/animation.rs b/components/layout/animation.rs index 3ea59e7b972..05718dda00a 100644 --- a/components/layout/animation.rs +++ b/components/layout/animation.rs @@ -39,14 +39,14 @@ where let mut new_running_animations = vec![]; while let Ok(animation) = new_animations_receiver.try_recv() { let mut should_push = true; - if let Animation::Keyframes(ref node, ref name, ref state) = animation { + if let Animation::Keyframes(ref node, _, ref name, ref state) = animation { // If the animation was already present in the list for the // node, just update its state, else push the new animation to // run. if let Some(ref mut animations) = running_animations.get_mut(node) { // TODO: This being linear is probably not optimal. for anim in animations.iter_mut() { - if let Animation::Keyframes(_, ref anim_name, ref mut anim_state) = *anim { + if let Animation::Keyframes(_, _, ref anim_name, ref mut anim_state) = *anim { if *name == *anim_name { debug!("update_animation_state: Found other animation {}", name); anim_state.update_from_other(&state, timer); @@ -83,7 +83,7 @@ where Animation::Transition(_, started_at, ref frame, _expired) => { now < started_at + frame.duration } - Animation::Keyframes(_, _, ref mut state) => { + Animation::Keyframes(_, _, _, ref mut state) => { // This animation is still running, or we need to keep // iterating. now < state.started_at + state.duration || state.tick() |