| 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/resolver/StyleBuilder.h" | 5 #include "core/css/resolver/StyleBuilder.h" |
| 6 | 6 |
| 7 #include "StyleBuilderFunctions.h" | 7 #include "StyleBuilderFunctions.h" |
| 8 #include "core/css/CSSProperty.h" |
| 8 #include "core/css/resolver/StyleResolverState.h" | 9 #include "core/css/resolver/StyleResolverState.h" |
| 9 | 10 |
| 10 // FIXME: currently we're just generating a switch statement, but we should | 11 // FIXME: currently we're just generating a switch statement, but we should |
| 11 // test other variations for performance once we have more properties here. | 12 // test other variations for performance once we have more properties here. |
| 12 | 13 |
| 13 namespace WebCore { | 14 namespace WebCore { |
| 14 | 15 |
| 15 void StyleBuilder::applyProperty(CSSPropertyID property, StyleResolverState& sta
te, CSSValue* value, bool isInitial, bool isInherit) { | 16 void StyleBuilder::applyProperty(CSSPropertyID property, StyleResolverState& sta
te, CSSValue* value, bool isInitial, bool isInherit) { |
| 16 switch(property) { | 17 switch(property) { |
| 17 {% for property_id, property in properties.items() | 18 {% for property_id, property in properties.items() |
| (...skipping 23 matching lines...) Expand all Loading... |
| 41 case {{property_id}}: | 42 case {{property_id}}: |
| 42 {% endfor %} | 43 {% endfor %} |
| 43 return; | 44 return; |
| 44 default: | 45 default: |
| 45 // FIXME: We should explicitly handle all cases here once we merge the v
arious .in files | 46 // FIXME: We should explicitly handle all cases here once we merge the v
arious .in files |
| 46 ASSERT_NOT_REACHED(); | 47 ASSERT_NOT_REACHED(); |
| 47 } | 48 } |
| 48 } | 49 } |
| 49 | 50 |
| 50 } // namespace WebCore | 51 } // namespace WebCore |
| OLD | NEW |