Parse none as just a normal animation item draft
authorXidorn Quan <me@upsuper.org>
Fri, 03 Mar 2017 18:24:06 +1100
changeset 494024 9690e07ed7462f5a0c4656dd8492682947340e35
parent 494023 78b31eec43fca55f2a62be31c19c8e0c844ae0b9
child 494025 ac337feefe3ec559e5b26c1441e6460e3fcc2a16
push id47899
push userxquan@mozilla.com
push dateMon, 06 Mar 2017 10:53:41 +0000
milestone54.0a1
Parse none as just a normal animation item MozReview-Commit-ID: 1xqmDMLbTd8
servo/components/style/properties/shorthand/box.mako.rs
--- a/servo/components/style/properties/shorthand/box.mako.rs
+++ b/servo/components/style/properties/shorthand/box.mako.rs
@@ -199,23 +199,21 @@ macro_rules! try_parse_one {
                 % endfor
             })
         }
 
         % for prop in props:
         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 {
             % for prop in props:
             animation_${prop}: animation_${prop}::SpecifiedValue(${prop}s),
             % endfor
         })
     }