| OLD | NEW |
| 1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
| 2 {# | 2 {# |
| 3 This file is for property handlers which use the templating engine to | 3 This file is for property handlers which use the templating engine to |
| 4 reduce (handwritten) code duplication. | 4 reduce (handwritten) code duplication. |
| 5 | 5 |
| 6 The `properties' dict can be used to access a property's parameters in | 6 The `properties' dict can be used to access a property's parameters in |
| 7 jinja2 templates (i.e. setter, getter, initial, type_name) | 7 jinja2 templates (i.e. setter, getter, initial, type_name) |
| 8 #} | 8 #} |
| 9 #include "config.h" | |
| 10 #include "StyleBuilderFunctions.h" | 9 #include "StyleBuilderFunctions.h" |
| 11 | 10 |
| 12 #include "CSSValueKeywords.h" | 11 #include "CSSValueKeywords.h" |
| 13 #include "core/css/BasicShapeFunctions.h" | 12 #include "core/css/BasicShapeFunctions.h" |
| 14 #include "core/css/CSSPrimitiveValueMappings.h" | 13 #include "core/css/CSSPrimitiveValueMappings.h" |
| 15 #include "core/css/Pair.h" | 14 #include "core/css/Pair.h" |
| 16 #include "core/css/resolver/StyleResolverState.h" | 15 #include "core/css/resolver/StyleResolverState.h" |
| 17 | 16 |
| 18 {% macro declare_initial_function(property_id) %} | 17 {% macro declare_initial_function(property_id) %} |
| 19 void StyleBuilderFunctions::applyInitial{{property_id}}(StyleResolverState& stat
e) | 18 void StyleBuilderFunctions::applyInitial{{property_id}}(StyleResolverState& stat
e) |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 state.style()->set{{alignment_type}}OverflowAlignment(*pairValue->second
()); | 439 state.style()->set{{alignment_type}}OverflowAlignment(*pairValue->second
()); |
| 441 } else { | 440 } else { |
| 442 state.style()->set{{alignment_type}}(*primitiveValue); | 441 state.style()->set{{alignment_type}}(*primitiveValue); |
| 443 } | 442 } |
| 444 } | 443 } |
| 445 {% endmacro %} | 444 {% endmacro %} |
| 446 {{apply_alignment('CSSPropertyAlignItems', 'AlignItems')}} | 445 {{apply_alignment('CSSPropertyAlignItems', 'AlignItems')}} |
| 447 {{apply_alignment('CSSPropertyAlignSelf', 'AlignSelf')}} | 446 {{apply_alignment('CSSPropertyAlignSelf', 'AlignSelf')}} |
| 448 | 447 |
| 449 } // namespace blink | 448 } // namespace blink |
| OLD | NEW |