From 03c5462cf5b6423a807d04108a7c3244ea51f149 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Tue, 15 Aug 2017 09:58:29 +0900 Subject: [PATCH] Make vertical-align animatable between percentage and percentage or length. --- .../style/properties/helpers/animated_properties.mako.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 87325fa70cd..ac1e5dc3660 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -943,10 +943,10 @@ impl Animatable for VerticalAlign { #[inline] fn add_weighted(&self, other: &Self, self_portion: f64, other_portion: f64) -> Result { match (*self, *other) { - (VerticalAlign::LengthOrPercentage(LengthOrPercentage::Length(ref this)), - VerticalAlign::LengthOrPercentage(LengthOrPercentage::Length(ref other))) => { + (VerticalAlign::LengthOrPercentage(ref this), + VerticalAlign::LengthOrPercentage(ref other)) => { this.add_weighted(other, self_portion, other_portion).map(|value| { - VerticalAlign::LengthOrPercentage(LengthOrPercentage::Length(value)) + VerticalAlign::LengthOrPercentage(value) }) } _ => Err(()),