Replace NonNegativeLengthOrNumber by a specific type for -moz-tab-size

This is the only use of this type.
This commit is contained in:
Anthony Ramine 2018-02-27 10:28:27 +01:00
parent da8604991e
commit 27732c7dbb
9 changed files with 49 additions and 28 deletions

View file

@ -133,3 +133,13 @@ impl<N, L> LineHeight<N, L> {
LineHeight::Normal
}
}
/// A generic value for the `-moz-tab-size` property.
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, Debug, MallocSizeOf)]
#[derive(PartialEq, ToAnimatedValue, ToAnimatedZero, ToComputedValue, ToCss)]
pub enum MozTabSize<Number, Length> {
/// A number.
Number(Number),
/// A length.
Length(Length),
}