mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Make column-count/column-gap/column-width animatable.
This commit is contained in:
parent
485a4de729
commit
48ab03ec91
3 changed files with 24 additions and 7 deletions
|
@ -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,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue