| OLD | NEW |
| 1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
| 2 {{license()}} | 2 {{license()}} |
| 3 | 3 |
| 4 #include "config.h" | 4 #include "config.h" |
| 5 #include "core/css/CSSPropertyMetadata.h" | 5 #include "core/css/CSSPropertyMetadata.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 {% for flag, function_name in switches %} |
| 8 | 9 |
| 9 bool CSSPropertyMetadata::isAnimatableProperty(CSSPropertyID property) | 10 bool CSSPropertyMetadata::{{function_name}}(CSSPropertyID property) |
| 10 { | 11 { |
| 11 switch(property) { | 12 switch(property) { |
| 12 case CSSPropertyInvalid: | 13 case CSSPropertyInvalid: |
| 13 ASSERT_NOT_REACHED(); | 14 ASSERT_NOT_REACHED(); |
| 14 return false; | 15 return false; |
| 15 {% for property_id, property in properties.items() if property.animatable %} | 16 {% for property_id, property in properties.items() if property[flag] %} |
| 16 case {{property_id}}: | 17 case {{property_id}}: |
| 17 {% endfor %} | 18 {% endfor %} |
| 18 return true; | 19 return true; |
| 19 default: | 20 default: |
| 20 return false; | 21 return false; |
| 21 } | 22 } |
| 22 } | 23 } |
| 24 {% endfor %} |
| 23 | 25 |
| 24 } // namespace blink | 26 } // namespace blink |
| OLD | NEW |