diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-02-12 02:11:44 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-02-13 16:05:17 +0100 |
commit | 61e04df2664725624f706327cd417fe24aff6e2d (patch) | |
tree | c1d70c0463a2acc1d9a62e485e3c670ca53e2f79 /components/style/animation.rs | |
parent | a604d605edf1813cc129409babb819d26db90824 (diff) | |
download | servo-61e04df2664725624f706327cd417fe24aff6e2d.tar.gz servo-61e04df2664725624f706327cd417fe24aff6e2d.zip |
style: Refactor the per_pseudo map from StyleData to avoid having an option value type.
This make the layout code way clearer.
Diffstat (limited to 'components/style/animation.rs')
-rw-r--r-- | components/style/animation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/animation.rs b/components/style/animation.rs index 10f96b19b1c..2dece839686 100644 --- a/components/style/animation.rs +++ b/components/style/animation.rs @@ -979,7 +979,7 @@ pub fn update_style_for_animation<ConcreteRestyleDamage: TRestyleDamage>(animati let mut new_style = (*style).clone(); animation.property_animation.update(&mut *Arc::make_mut(&mut new_style), progress); if let Some(damage) = damage { - *damage = *damage | ConcreteRestyleDamage::compute(&Some((*style).clone()), &new_style); + *damage = *damage | ConcreteRestyleDamage::compute(Some(style), &new_style); } *style = new_style |