| 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/CSSProperty.h" |
| 9 #include "core/css/resolver/StyleResolverState.h" | 9 #include "core/css/resolver/StyleResolverState.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 case {{property_id}}: | 22 case {{property_id}}: |
| 23 if (isInitial) | 23 if (isInitial) |
| 24 StyleBuilderFunctions::applyInitial{{used_property_id}}(state); | 24 StyleBuilderFunctions::applyInitial{{used_property_id}}(state); |
| 25 else if (isInherit) | 25 else if (isInherit) |
| 26 StyleBuilderFunctions::applyInherit{{used_property_id}}(state); | 26 StyleBuilderFunctions::applyInherit{{used_property_id}}(state); |
| 27 else | 27 else |
| 28 StyleBuilderFunctions::applyValue{{used_property_id}}(state, value); | 28 StyleBuilderFunctions::applyValue{{used_property_id}}(state, value); |
| 29 return; | 29 return; |
| 30 | 30 |
| 31 {% endfor %} | 31 {% endfor %} |
| 32 case CSSPropertyVariable: |
| 33 ASSERT(!isInitial && !isInherit); |
| 34 StyleBuilderFunctions::applyValueCSSPropertyVariable(state, value); |
| 35 return; |
| 32 {% for property_id, property in properties.items() if property.direction_awa
re %} | 36 {% for property_id, property in properties.items() if property.direction_awa
re %} |
| 33 case {{property_id}}: | 37 case {{property_id}}: |
| 34 {% endfor %} | 38 {% endfor %} |
| 35 { | 39 { |
| 36 CSSPropertyID resolvedProperty = CSSProperty::resolveDirectionAwarePrope
rty(property, state.style()->direction(), state.style()->writingMode()); | 40 CSSPropertyID resolvedProperty = CSSProperty::resolveDirectionAwarePrope
rty(property, state.style()->direction(), state.style()->writingMode()); |
| 37 ASSERT(resolvedProperty != property); | 41 ASSERT(resolvedProperty != property); |
| 38 applyProperty(resolvedProperty, state, value); | 42 applyProperty(resolvedProperty, state, value); |
| 39 return; | 43 return; |
| 40 } | 44 } |
| 41 {% for property_id, property in properties.items() if property.builder_skip
%} | 45 {% for property_id, property in properties.items() if property.builder_skip
%} |
| 42 case {{property_id}}: | 46 case {{property_id}}: |
| 43 {% endfor %} | 47 {% endfor %} |
| 44 return; | 48 return; |
| 45 default: | 49 default: |
| 46 ASSERT_NOT_REACHED(); | 50 ASSERT_NOT_REACHED(); |
| 47 } | 51 } |
| 48 } | 52 } |
| 49 | 53 |
| 50 } // namespace blink | 54 } // namespace blink |
| OLD | NEW |