aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2017-03-06 22:01:37 +1100
committerXidorn Quan <me@upsuper.org>2017-03-06 22:01:37 +1100
commit97f2ccacbbb395d6f306a40ff3d73d91e277fa2f (patch)
treeab06a67dc99bae9174be599fcde1797176f7600a
parent6b03760213f099f57bbaaf1ba0f5d2b4f9606d9a (diff)
downloadservo-97f2ccacbbb395d6f306a40ff3d73d91e277fa2f.tar.gz
servo-97f2ccacbbb395d6f306a40ff3d73d91e277fa2f.zip
Parse none as just a normal animation item
-rw-r--r--components/style/properties/shorthand/box.mako.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/components/style/properties/shorthand/box.mako.rs b/components/style/properties/shorthand/box.mako.rs
index 1639dd475f3..c951c3833ad 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 {