Remove special case of converting from nsCSSPropertyID to PropertyId. r?heycam draft
authorXidorn Quan <me@upsuper.org>
Wed, 21 Dec 2016 16:48:25 +1100
changeset 452161 5c6d032b3d908baf54c49a0d9799e9b577b458ae
parent 452160 8d502b58d6124335dcf54146306628644252dfb6
child 540159 78275286015f663ef8efaf351bf9df0ce2134d48
push id39330
push userxquan@mozilla.com
push dateWed, 21 Dec 2016 07:05:34 +0000
reviewersheycam
milestone53.0a1
Remove special case of converting from nsCSSPropertyID to PropertyId. r?heycam MozReview-Commit-ID: Jkdf5t6uz2u
servo/components/style/properties/properties.mako.rs
--- 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