mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Further changes required by Servo
This commit is contained in:
parent
291b3ee573
commit
252b50931d
1 changed files with 8 additions and 1 deletions
|
@ -5,7 +5,6 @@
|
||||||
//! Generic types for CSS values related to length.
|
//! Generic types for CSS values related to length.
|
||||||
|
|
||||||
use crate::parser::{Parse, ParserContext};
|
use crate::parser::{Parse, ParserContext};
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
use crate::Zero;
|
use crate::Zero;
|
||||||
use cssparser::Parser;
|
use cssparser::Parser;
|
||||||
use style_traits::ParseError;
|
use style_traits::ParseError;
|
||||||
|
@ -150,12 +149,16 @@ impl<LengthPercentage: Parse> Parse for LengthPercentageOrAuto<LengthPercentage>
|
||||||
pub enum GenericSize<LengthPercent> {
|
pub enum GenericSize<LengthPercent> {
|
||||||
LengthPercentage(LengthPercent),
|
LengthPercentage(LengthPercent),
|
||||||
Auto,
|
Auto,
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
#[animation(error)]
|
#[animation(error)]
|
||||||
MaxContent,
|
MaxContent,
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
#[animation(error)]
|
#[animation(error)]
|
||||||
MinContent,
|
MinContent,
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
#[animation(error)]
|
#[animation(error)]
|
||||||
MozFitContent,
|
MozFitContent,
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
#[animation(error)]
|
#[animation(error)]
|
||||||
MozAvailable,
|
MozAvailable,
|
||||||
}
|
}
|
||||||
|
@ -198,14 +201,18 @@ impl<LengthPercentage> Size<LengthPercentage> {
|
||||||
pub enum GenericMaxSize<LengthPercent> {
|
pub enum GenericMaxSize<LengthPercent> {
|
||||||
LengthPercentage(LengthPercent),
|
LengthPercentage(LengthPercent),
|
||||||
None,
|
None,
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
#[animation(error)]
|
#[animation(error)]
|
||||||
#[parse(aliases = "-moz-max-content")]
|
#[parse(aliases = "-moz-max-content")]
|
||||||
MaxContent,
|
MaxContent,
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
#[animation(error)]
|
#[animation(error)]
|
||||||
#[parse(aliases = "-moz-min-content")]
|
#[parse(aliases = "-moz-min-content")]
|
||||||
MinContent,
|
MinContent,
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
#[animation(error)]
|
#[animation(error)]
|
||||||
MozFitContent,
|
MozFitContent,
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
#[animation(error)]
|
#[animation(error)]
|
||||||
MozAvailable,
|
MozAvailable,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue