diff --git a/components/style/properties/helpers.mako.rs b/components/style/properties/helpers.mako.rs index 6ec124c4b1e..808fa26644d 100644 --- a/components/style/properties/helpers.mako.rs +++ b/components/style/properties/helpers.mako.rs @@ -80,7 +80,7 @@ `initial_value` need not be defined for these. <%def name="vector_longhand(name, gecko_only=False, allow_empty=False, - delegate_animate=False, space_separated_allowed=False, **kwargs)"> + delegate_animate=False, separator='Comma', **kwargs)"> <%call expr="longhand(name, vector=True, **kwargs)"> % if not gecko_only: use smallvec::SmallVec; @@ -218,12 +218,6 @@ pub fn parse<'i, 't>(context: &ParserContext, input: &mut Parser<'i, 't>) -> Result> { use style_traits::Separator; - #[allow(unused_imports)] - use style_traits::{Comma, CommaWithSpace}; - - <% - separator = "CommaWithSpace" if space_separated_allowed else "Comma" - %> % if allow_empty: if input.try(|input| input.expect_ident_matching("none")).is_ok() { @@ -231,7 +225,7 @@ } % endif - ${separator}::parse(input, |parser| { + ::style_traits::${separator}::parse(input, |parser| { single_value::parse(context, parser) }).map(SpecifiedValue) } diff --git a/components/style/properties/longhand/inherited_svg.mako.rs b/components/style/properties/longhand/inherited_svg.mako.rs index 1d7fd7a985a..f3a2217d3ac 100644 --- a/components/style/properties/longhand/inherited_svg.mako.rs +++ b/components/style/properties/longhand/inherited_svg.mako.rs @@ -97,7 +97,7 @@ ${helpers.predefined_type( delegate_animate=True, products="gecko", animation_value_type="ComputedValue", - space_separated_allowed="True", + separator="CommaWithSpace", spec="https://www.w3.org/TR/SVG2/painting.html#StrokeDashing", )}