Remove special case of converting from nsCSSPropertyID to PropertyId. r?heycam
draft
Remove special case of converting from nsCSSPropertyID to PropertyId. r?heycam
MozReview-Commit-ID: Jkdf5t6uz2u
--- a/servo/components/style/properties/properties.mako.rs
+++ b/servo/components/style/properties/properties.mako.rs
@@ -653,20 +653,16 @@ impl PropertyId {
use gecko_bindings::structs::*;
<%
def to_nscsspropertyid(ident):
if ident == "word_wrap":
return "nsCSSPropertyID_eCSSPropertyAlias_WordWrap"
if ident == "float":
ident = "float_"
- elif "outline_radius" in ident:
- ident = ident.replace("right", "Right").replace("left", "Left")
- elif ident.startswith("_moz_"):
- ident = ident[len("_moz_"):]
return "nsCSSPropertyID::eCSSProperty_" + ident
%>
match id {
% for property in data.longhands:
${to_nscsspropertyid(property.ident)} => {
Ok(PropertyId::Longhand(LonghandId::${property.camel_case}))
}
% endfor