| 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 "StyleBuilderFunctions.h" | 9 #include "StyleBuilderFunctions.h" |
| 10 | 10 |
| 11 #include "CSSValueKeywords.h" | 11 #include "CSSValueKeywords.h" |
| 12 #include "core/animation/css/CSSAnimationData.h" |
| 12 #include "core/css/BasicShapeFunctions.h" | 13 #include "core/css/BasicShapeFunctions.h" |
| 13 #include "core/css/CSSContentDistributionValue.h" | 14 #include "core/css/CSSContentDistributionValue.h" |
| 14 #include "core/css/CSSCustomIdentValue.h" | 15 #include "core/css/CSSCustomIdentValue.h" |
| 15 #include "core/css/CSSPrimitiveValueMappings.h" | 16 #include "core/css/CSSPrimitiveValueMappings.h" |
| 16 #include "core/css/CSSURIValue.h" | 17 #include "core/css/CSSURIValue.h" |
| 17 #include "core/css/CSSValuePair.h" | 18 #include "core/css/CSSValuePair.h" |
| 18 #include "core/css/resolver/StyleResolverState.h" | 19 #include "core/css/resolver/StyleResolverState.h" |
| 19 | 20 |
| 20 {% macro declare_initial_function(property_id) %} | 21 {% macro declare_initial_function(property_id) %} |
| 21 void StyleBuilderFunctions::applyInitial{{property_id}}(StyleResolverState& stat
e) | 22 void StyleBuilderFunctions::applyInitial{{property_id}}(StyleResolverState& stat
e) |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 paintType = url.isEmpty() ? SVG_PAINTTYPE_RGBCOLOR : SVG_PAINTTYPE_URI_R
GBCOLOR; | 532 paintType = url.isEmpty() ? SVG_PAINTTYPE_RGBCOLOR : SVG_PAINTTYPE_URI_R
GBCOLOR; |
| 532 } | 533 } |
| 533 {{set_value(property)}}(paintType, color, url, | 534 {{set_value(property)}}(paintType, color, url, |
| 534 state.applyPropertyToRegularStyle(), | 535 state.applyPropertyToRegularStyle(), |
| 535 state.applyPropertyToVisitedLinkStyle()); | 536 state.applyPropertyToVisitedLinkStyle()); |
| 536 } | 537 } |
| 537 {% endmacro %} | 538 {% endmacro %} |
| 538 {{apply_svg_paint('CSSPropertyFill', 'FillPaint')}} | 539 {{apply_svg_paint('CSSPropertyFill', 'FillPaint')}} |
| 539 {{apply_svg_paint('CSSPropertyStroke', 'StrokePaint')}} | 540 {{apply_svg_paint('CSSPropertyStroke', 'StrokePaint')}} |
| 540 } // namespace blink | 541 } // namespace blink |
| OLD | NEW |