Skip to content

Commit

Permalink
Fix alias handling in properties.mako
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed Jan 10, 2017
1 parent c784bc6 commit 8af8168
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/style/properties/properties.mako.rs
Expand Up @@ -759,7 +759,9 @@ impl PropertyId {
use gecko_bindings::structs::*;
<%
def alias_to_nscsspropertyid(alias):
return "nsCSSPropertyID_eCSSPropertyAlias_%s" % to_camel_case(alias)
if alias == "word-wrap":
return "nsCSSPropertyID_eCSSPropertyAlias_WordWrap"
return "nsCSSPropertyID::eCSSPropertyAlias_%s" % to_camel_case(alias)
def to_nscsspropertyid(ident):
if ident == "float":
ident = "float_"
Expand All @@ -782,7 +784,7 @@ impl PropertyId {
}
% for alias in property.alias:
${alias_to_nscsspropertyid(alias)} => {
Ok(PropertyId::Longhand(LonghandId::${property.camel_case}))
Ok(PropertyId::Shorthand(ShorthandId::${property.camel_case}))
}
% endfor
% endfor
Expand Down

0 comments on commit 8af8168

Please sign in to comment.