mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Don't use define_css_keyword_enum in style anymore
This commit is contained in:
parent
09e304adb3
commit
3d99a4489c
14 changed files with 174 additions and 158 deletions
|
@ -32,14 +32,17 @@ pub mod text;
|
|||
pub mod transform;
|
||||
|
||||
// https://drafts.csswg.org/css-counter-styles/#typedef-symbols-type
|
||||
define_css_keyword_enum! { SymbolsType:
|
||||
"cyclic" => Cyclic,
|
||||
"numeric" => Numeric,
|
||||
"alphabetic" => Alphabetic,
|
||||
"symbolic" => Symbolic,
|
||||
"fixed" => Fixed,
|
||||
#[allow(missing_docs)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq)]
|
||||
#[derive(ToComputedValue, ToCss)]
|
||||
pub enum SymbolsType {
|
||||
Cyclic,
|
||||
Numeric,
|
||||
Alphabetic,
|
||||
Symbolic,
|
||||
Fixed,
|
||||
}
|
||||
add_impls_for_keyword_enum!(SymbolsType);
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
impl SymbolsType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue