mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -20,7 +20,6 @@ use super::{AllowQuirks, Number, ToComputedValue, Percentage};
|
|||
use values::{Auto, CSSFloat, Either, Normal};
|
||||
use values::computed::{self, CSSPixelLength, Context, ExtremumLength};
|
||||
use values::generics::NonNegative;
|
||||
use values::specified::NonNegativeNumber;
|
||||
use values::specified::calc::CalcNode;
|
||||
|
||||
pub use values::specified::calc::CalcLengthOrPercentage;
|
||||
|
@ -687,12 +686,6 @@ pub type NonNegativeLengthOrNormal = Either<NonNegativeLength, Normal>;
|
|||
/// Either a NonNegativeLength or the `auto` keyword.
|
||||
pub type NonNegativeLengthOrAuto = Either<NonNegativeLength, Auto>;
|
||||
|
||||
/// Either a NonNegativeLength or a NonNegativeNumber value.
|
||||
///
|
||||
/// The order is important, because `0` must be parsed as the number `0` and not
|
||||
/// the length `0px`.
|
||||
pub type NonNegativeLengthOrNumber = Either<NonNegativeNumber, NonNegativeLength>;
|
||||
|
||||
/// A length or a percentage value.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToCss)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue