Skip to content

Commit

Permalink
Parse none as just a normal animation item
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed Mar 6, 2017
1 parent 6b03760 commit 97f2cca
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions components/style/properties/shorthand/box.mako.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 97f2cca

Please sign in to comment.