OLD | NEW |
1 {% from "macros.tmpl" import lower_first -%} | 1 {% from "macros.tmpl" import lower_first -%} |
2 | 2 |
3 {# | 3 {# |
4 This file is for property handlers which use the templating engine to | 4 This file is for property handlers which use the templating engine to |
5 reduce (handwritten) code duplication. | 5 reduce (handwritten) code duplication. |
6 | 6 |
7 The `properties' dict can be used to access a property's parameters in | 7 The `properties' dict can be used to access a property's parameters in |
8 jinja2 templates (i.e. setter, getter, initial, type_name) | 8 jinja2 templates (i.e. setter, getter, initial, type_name) |
9 -#} | 9 -#} |
10 | 10 |
11 #include "config.h" | 11 #include "config.h" |
12 #include "StyleBuilderFunctions.h" | 12 #include "StyleBuilderFunctions.h" |
13 | 13 |
14 #include "CSSValueKeywords.h" | 14 #include "CSSValueKeywords.h" |
| 15 #include "core/animation/css/CSSAnimationDataList.h" |
15 #include "core/css/BasicShapeFunctions.h" | 16 #include "core/css/BasicShapeFunctions.h" |
16 #include "core/css/CSSPrimitiveValueMappings.h" | 17 #include "core/css/CSSPrimitiveValueMappings.h" |
17 #include "core/css/Pair.h" | 18 #include "core/css/Pair.h" |
18 #include "core/css/resolver/StyleResolverState.h" | 19 #include "core/css/resolver/StyleResolverState.h" |
19 #include "core/platform/animation/CSSAnimationDataList.h" | |
20 | 20 |
21 | 21 |
22 {%- macro declare_initial_function(property_id) -%} | 22 {%- macro declare_initial_function(property_id) -%} |
23 void StyleBuilderFunctions::applyInitial{{property_id}}(StyleResolverState& stat
e) | 23 void StyleBuilderFunctions::applyInitial{{property_id}}(StyleResolverState& stat
e) |
24 {%- endmacro %} | 24 {%- endmacro %} |
25 | 25 |
26 {%- macro declare_inherit_function(property_id) -%} | 26 {%- macro declare_inherit_function(property_id) -%} |
27 void StyleBuilderFunctions::applyInherit{{property_id}}(StyleResolverState& stat
e) | 27 void StyleBuilderFunctions::applyInherit{{property_id}}(StyleResolverState& stat
e) |
28 {%- endmacro %} | 28 {%- endmacro %} |
29 | 29 |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 } else if (value->isImageValue()) { | 505 } else if (value->isImageValue()) { |
506 {{ set_value(property) }}(ShapeValue::createImageValue(state.styleImage(
{{property_id}}, value))); | 506 {{ set_value(property) }}(ShapeValue::createImageValue(state.styleImage(
{{property_id}}, value))); |
507 } | 507 } |
508 } | 508 } |
509 {%- endmacro %} | 509 {%- endmacro %} |
510 | 510 |
511 {{ apply_value_shape("CSSPropertyShapeInside") }} | 511 {{ apply_value_shape("CSSPropertyShapeInside") }} |
512 {{ apply_value_shape("CSSPropertyShapeOutside") }} | 512 {{ apply_value_shape("CSSPropertyShapeOutside") }} |
513 | 513 |
514 } // namespace WebCore | 514 } // namespace WebCore |
OLD | NEW |