Skip to content

Commit

Permalink
Make vertical-align animatable between percentage and percentage or l…
Browse files Browse the repository at this point in the history
…ength.
  • Loading branch information
Hiroyuki Ikezoe committed Aug 15, 2017
1 parent 5c9ba6e commit 03c5462
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -943,10 +943,10 @@ impl Animatable for VerticalAlign {
#[inline]
fn add_weighted(&self, other: &Self, self_portion: f64, other_portion: f64) -> Result<Self, ()> {
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(()),
Expand Down

0 comments on commit 03c5462

Please sign in to comment.