mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Replace NonNegativeLengthOrNumber by a specific type for -moz-tab-size
This is the only use of this type.
This commit is contained in:
parent
da8604991e
commit
27732c7dbb
9 changed files with 49 additions and 28 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue