mirror of
https://github.com/servo/servo.git
synced 2025-07-07 23:43:39 +01:00
Parse none as just a normal animation item
This commit is contained in:
parent
6b03760213
commit
97f2ccacbb
1 changed files with 5 additions and 7 deletions
|
@ -204,13 +204,11 @@ macro_rules! try_parse_one {
|
||||||
let mut ${prop}s = vec![];
|
let mut ${prop}s = vec![];
|
||||||
% endfor
|
% 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)));
|
||||||
let results = try!(input.parse_comma_separated(|i| parse_one_animation(context, i)));
|
for result in results.into_iter() {
|
||||||
for result in results.into_iter() {
|
% for prop in props:
|
||||||
% for prop in props:
|
${prop}s.push(result.animation_${prop});
|
||||||
${prop}s.push(result.animation_${prop});
|
% endfor
|
||||||
% endfor
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(Longhands {
|
Ok(Longhands {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue