Move LengthOrNumber to style/values and implement GeckoStyleCoordConvertible

This commit is contained in:
Nazım Can Altınova 2016-11-04 21:30:07 +03:00
parent 9a2ef2e6ef
commit 7720fe4d9c
7 changed files with 131 additions and 90 deletions

View file

@ -12,7 +12,7 @@ pub use cssparser::Color as CSSColor;
pub use self::image::{EndingShape as GradientShape, Gradient, GradientKind, Image};
pub use self::image::{LengthOrKeyword, LengthOrPercentageOrKeyword};
pub use super::specified::{Angle, BorderStyle, Time, UrlExtraData, UrlOrNone};
pub use self::length::{CalcLengthOrPercentage, LengthOrPercentage, LengthOrPercentageOrAuto};
pub use self::length::{CalcLengthOrPercentage, Length, LengthOrNumber, LengthOrPercentage, LengthOrPercentageOrAuto};
pub use self::length::{LengthOrPercentageOrAutoOrContent, LengthOrPercentageOrNone, LengthOrNone};
pub mod basic_shape;
@ -147,7 +147,5 @@ impl ::cssparser::ToCss for BorderRadiusSize {
}
}
pub type Length = Au;
pub type Number = CSSFloat;
pub type Opacity = CSSFloat;