style: use the same type for overflow-clip-box longhands.

Needed to add the hacky padding_box scheme, will fix it up later.
This commit is contained in:
Emilio Cobos Álvarez 2017-12-05 19:00:14 +01:00
parent cdf7ae51b6
commit 35d0e7cf0f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
7 changed files with 64 additions and 54 deletions

View file

@ -124,3 +124,10 @@ define_css_keyword_enum! { OverscrollBehavior:
"none" => None,
}
add_impls_for_keyword_enum!(OverscrollBehavior);
// FIXME(emilio): Make all keywords CamelCase.
define_css_keyword_enum! { OverflowClipBox:
"padding-box" => padding_box,
"content-box" => content_box,
}
add_impls_for_keyword_enum!(OverflowClipBox);

View file

@ -34,7 +34,8 @@ pub use self::font::{FontSize, FontSizeAdjust, FontSynthesis, FontWeight, FontVa
pub use self::font::{FontFamily, FontLanguageOverride, FontVariantSettings, FontVariantEastAsian};
pub use self::font::{FontVariantLigatures, FontVariantNumeric, FontFeatureSettings};
pub use self::font::{MozScriptLevel, MozScriptMinSize, MozScriptSizeMultiplier, XTextZoom, XLang};
pub use self::box_::{AnimationIterationCount, AnimationName, OverscrollBehavior, ScrollSnapType, VerticalAlign};
pub use self::box_::{AnimationIterationCount, AnimationName, OverscrollBehavior};
pub use self::box_::{OverflowClipBox, ScrollSnapType, VerticalAlign};
pub use self::color::{Color, ColorPropertyValue, RGBAColor};
pub use self::effects::{BoxShadow, Filter, SimpleShadow};
pub use self::flex::FlexBasis;