diff --git a/components/style/properties/longhand/position.mako.rs b/components/style/properties/longhand/position.mako.rs index ff163346238..c92ffcf4f42 100644 --- a/components/style/properties/longhand/position.mako.rs +++ b/components/style/properties/longhand/position.mako.rs @@ -418,7 +418,6 @@ ${helpers.predefined_type("object-position", use std::ops::Range; use str::HTML_SPACE_CHARACTERS; use style_traits::ToCss; - use values::computed::ComputedValueAsSpecified; pub mod computed_value { pub use super::SpecifiedValue as T; @@ -450,11 +449,13 @@ ${helpers.predefined_type("object-position", pub columns: Range, } - impl ComputedValueAsSpecified for TemplateAreas {} + trivial_to_computed_value!(TemplateAreas); impl Parse for TemplateAreas { - fn parse<'i, 't>(_context: &ParserContext, input: &mut Parser<'i, 't>) - -> Result> { + fn parse<'i, 't>( + _context: &ParserContext, + input: &mut Parser<'i, 't>, + ) -> Result> { let mut strings = vec![]; while let Ok(string) = input.try(|i| i.expect_string().map(|s| s.as_ref().into())) { strings.push(string);