Make column-count/column-gap/column-width animatable.

This commit is contained in:
Mantaroh Yoshinaga 2017-04-17 16:26:53 +09:00
parent 485a4de729
commit 48ab03ec91
3 changed files with 24 additions and 7 deletions

View file

@ -29,7 +29,7 @@ use std::fmt;
use style_traits::ToCss;
use super::ComputedValues;
use values::CSSFloat;
use values::{Auto, Either};
use values::{Auto, Either, Normal};
use values::computed::{Angle, LengthOrPercentageOrAuto, LengthOrPercentageOrNone};
use values::computed::{BorderRadiusSize, ClipRect, LengthOrNone};
use values::computed::{CalcLengthOrPercentage, Context, LengthOrPercentage};
@ -515,6 +515,13 @@ impl Interpolate for Auto {
}
}
impl Interpolate for Normal {
#[inline]
fn interpolate(&self, _other: &Self, _progress: f64) -> Result<Self, ()> {
Ok(Normal)
}
}
impl <T> Interpolate for Option<T>
where T: Interpolate,
{