diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 538d8a98c5a..3ae89836127 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -1140,8 +1140,9 @@ impl Clone for ${style_struct.gecko_struct_name} { } -<%def name="raw_impl_trait(style_struct, skip_longhands='', skip_additionals='')"> +<%def name="impl_trait(style_struct_name, skip_longhands='', skip_additionals='')"> <% + style_struct = next(x for x in data.style_structs if x.name == style_struct_name) longhands = [x for x in style_struct.longhands if not (skip_longhands == "*" or x.name in skip_longhands.split())] @@ -1274,13 +1275,6 @@ impl ${style_struct.gecko_struct_name} { } -<%def name="impl_trait(style_struct_name, skip_longhands='', skip_additionals='')"> -<%self:raw_impl_trait style_struct="${next(x for x in data.style_structs if x.name == style_struct_name)}" - skip_longhands="${skip_longhands}" skip_additionals="${skip_additionals}"> -${caller.body()} - - - <%! class Side(object): def __init__(self, name, index):