Convert column-width to use Either

Fixes #14350
This commit is contained in:
J. Cliff Dyer 2016-11-28 07:21:11 -05:00 committed by Ravi Shankar
parent f159b5cb10
commit 5821ff77db
8 changed files with 38 additions and 97 deletions

View file

@ -7,7 +7,7 @@ use ordered_float::NotNaN;
use std::fmt;
use style_traits::ToCss;
use super::{Number, ToComputedValue, Context};
use values::{CSSFloat, Either, None_, specified};
use values::{Auto, CSSFloat, Either, None_, specified};
pub use cssparser::Color as CSSColor;
pub use super::image::{EndingShape as GradientShape, Gradient, GradientKind, Image};
@ -471,6 +471,8 @@ impl ToCss for LengthOrPercentageOrNone {
pub type LengthOrNone = Either<Length, None_>;
pub type LengthOrAuto = Either<Length, Auto>;
pub type LengthOrNumber = Either<Length, Number>;
pub type Length = Au;