From 96cf81ad5d9a8004cca5dd32205a39b2fcff6864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Naz=C4=B1m=20Can=20Alt=C4=B1nova?= Date: Sat, 7 Jan 2017 00:09:02 +0300 Subject: [PATCH] Fix try_parse_one macro and parse function of TransitionTimingFunction --- components/style/properties/longhand/box.mako.rs | 7 ------- components/style/properties/shorthand/box.mako.rs | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index c9f926f05a3..1fd2be2245a 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -557,13 +557,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto", Steps(u32, StartEnd), } - impl TransitionTimingFunction { - pub fn parse(context: &ParserContext, input: &mut ::cssparser::Parser) -> - Result { - super::TransitionTimingFunction::parse(context, input) - } - } - impl ToCss for TransitionTimingFunction { fn to_css(&self, dest: &mut W) -> fmt::Result where W: fmt::Write { match *self { diff --git a/components/style/properties/shorthand/box.mako.rs b/components/style/properties/shorthand/box.mako.rs index cd5eb1ba4ce..b7e45476789 100644 --- a/components/style/properties/shorthand/box.mako.rs +++ b/components/style/properties/shorthand/box.mako.rs @@ -76,7 +76,7 @@ macro_rules! try_parse_one { ($input: expr, $var: ident, $prop_module: ident) => { if $var.is_none() { - if let Ok(value) = $input.try($prop_module::computed_value::SingleComputedValue::parse) { + if let Ok(value) = $input.try($prop_module::SingleSpecifiedValue::parse) { $var = Some(value); continue; } @@ -85,7 +85,7 @@ macro_rules! try_parse_one { ($context: expr, $input: expr, $var: ident, $prop_module: ident) => { if $var.is_none() { if let Ok(value) = $input.try(|i| { - $prop_module::computed_value::SingleComputedValue::parse($context, i) + $prop_module::SingleSpecifiedValue::parse($context, i) }) { $var = Some(value); continue;