Parse none as just a normal animation item

This commit is contained in:
Xidorn Quan 2017-03-06 22:01:37 +11:00
parent 6b03760213
commit 97f2ccacbb

View file

@ -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 {