mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
parent
473934c989
commit
36ff89bd28
61 changed files with 73 additions and 437 deletions
|
@ -54,7 +54,7 @@ pub fn serialize_dimension<W>(value: CSSFloat, unit: &str, dest: &mut W)
|
|||
|
||||
/// Convenience void type to disable some properties and values through types.
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, HeapSizeOf, Serialize))]
|
||||
#[derive(Clone, Copy, Debug, HasViewportPercentage, PartialEq, ToComputedValue, ToCss)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, ToComputedValue, ToCss)]
|
||||
pub enum Impossible {}
|
||||
|
||||
impl Parse for Impossible {
|
||||
|
@ -68,7 +68,7 @@ impl Parse for Impossible {
|
|||
|
||||
/// A struct representing one of two kinds of values.
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, HasViewportPercentage)]
|
||||
#[derive(Animate, Clone, ComputeSquaredDistance, Copy)]
|
||||
#[derive(PartialEq, ToAnimatedValue, ToAnimatedZero, ToComputedValue, ToCss)]
|
||||
pub enum Either<A, B> {
|
||||
/// The first value.
|
||||
|
@ -196,4 +196,3 @@ define_css_keyword_enum!(ExtremumLength:
|
|||
"-moz-min-content" => MinContent,
|
||||
"-moz-fit-content" => FitContent,
|
||||
"-moz-available" => FillAvailable);
|
||||
no_viewport_percentage!(ExtremumLength);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue