mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Move TransformStyle out of Mako files
This commit is contained in:
parent
579cef6a69
commit
1f8777bb0b
9 changed files with 63 additions and 13 deletions
|
@ -21,7 +21,9 @@ pub fn derive(input: DeriveInput) -> Tokens {
|
|||
);
|
||||
|
||||
let variant_attrs = cg::parse_variant_attrs::<CssVariantAttrs>(variant);
|
||||
let identifier = cg::to_css_identifier(variant.ident.as_ref());
|
||||
let identifier = cg::to_css_identifier(
|
||||
&variant_attrs.keyword.as_ref().unwrap_or(&variant.ident).as_ref(),
|
||||
);
|
||||
let ident = &variant.ident;
|
||||
|
||||
match_body = quote! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue