mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Add a generic way to deal with lists of values, ditch all uses of as_servo in style/animations.rs
This commit is contained in:
parent
07da4e4ea2
commit
ba53c4ea8d
6 changed files with 120 additions and 53 deletions
|
@ -225,6 +225,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
pub use self::${to_camel_case(name)} as SingleComputedValue;
|
||||
|
||||
define_css_keyword_enum! { ${to_camel_case(name)}:
|
||||
% for value in data.longhands_by_name[name].keyword.values_for(product):
|
||||
"${value}" => ${to_rust_ident(value)},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue