From 84f3073402e4d0ddae4815e581d98e286badb7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 9 Sep 2017 13:29:06 +0200 Subject: [PATCH] style: Avoid ComputedValueAsSpecified in template-areas. Would need to impl ToComputedValue for Range and Box, which is undoable right now. --- components/style/properties/longhand/position.mako.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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);