From 97f2ccacbbb395d6f306a40ff3d73d91e277fa2f Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Mon, 6 Mar 2017 22:01:37 +1100 Subject: [PATCH] Parse none as just a normal animation item --- components/style/properties/shorthand/box.mako.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/style/properties/shorthand/box.mako.rs b/components/style/properties/shorthand/box.mako.rs index 1639dd475f37..c951c3833ad8 100644 --- a/components/style/properties/shorthand/box.mako.rs +++ b/components/style/properties/shorthand/box.mako.rs @@ -204,13 +204,11 @@ macro_rules! try_parse_one { let mut ${prop}s = vec![]; % endfor - if input.try(|input| input.expect_ident_matching("none")).is_err() { - let results = try!(input.parse_comma_separated(|i| parse_one_animation(context, i))); - for result in results.into_iter() { - % for prop in props: - ${prop}s.push(result.animation_${prop}); - % endfor - } + let results = try!(input.parse_comma_separated(|i| parse_one_animation(context, i))); + for result in results.into_iter() { + % for prop in props: + ${prop}s.push(result.animation_${prop}); + % endfor } Ok(Longhands {