| 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 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 {{apply_color('CSSPropertyBorderBottomColor')}} | 312 {{apply_color('CSSPropertyBorderBottomColor')}} |
| 313 {{apply_color('CSSPropertyBorderLeftColor')}} | 313 {{apply_color('CSSPropertyBorderLeftColor')}} |
| 314 {{apply_color('CSSPropertyBorderRightColor')}} | 314 {{apply_color('CSSPropertyBorderRightColor')}} |
| 315 {{apply_color('CSSPropertyBorderTopColor')}} | 315 {{apply_color('CSSPropertyBorderTopColor')}} |
| 316 {{apply_color('CSSPropertyOutlineColor')}} | 316 {{apply_color('CSSPropertyOutlineColor')}} |
| 317 {{apply_color('CSSPropertyTextDecorationColor')}} | 317 {{apply_color('CSSPropertyTextDecorationColor')}} |
| 318 {{apply_color('CSSPropertyColumnRuleColor')}} | 318 {{apply_color('CSSPropertyColumnRuleColor')}} |
| 319 {{apply_color('CSSPropertyWebkitTextEmphasisColor')}} | 319 {{apply_color('CSSPropertyWebkitTextEmphasisColor')}} |
| 320 {{apply_color('CSSPropertyWebkitTextFillColor')}} | 320 {{apply_color('CSSPropertyWebkitTextFillColor')}} |
| 321 {{apply_color('CSSPropertyWebkitTextStrokeColor')}} | 321 {{apply_color('CSSPropertyWebkitTextStrokeColor')}} |
| 322 {{apply_color('CSSPropertyCaretColor', initial_color='StyleColor::autoColor') }} |
| 322 | 323 |
| 323 {% macro apply_counter(property_id, action) %} | 324 {% macro apply_counter(property_id, action) %} |
| 324 {% set property = properties[property_id] %} | 325 {% set property = properties[property_id] %} |
| 325 {{declare_initial_function(property_id)}} { | 326 {{declare_initial_function(property_id)}} { |
| 326 state.style()->clear{{action}}Directives(); | 327 state.style()->clear{{action}}Directives(); |
| 327 } | 328 } |
| 328 | 329 |
| 329 {{declare_inherit_function(property_id)}} { | 330 {{declare_inherit_function(property_id)}} { |
| 330 const CounterDirectiveMap* parentMap = state.parentStyle()->counterDirectives(
); | 331 const CounterDirectiveMap* parentMap = state.parentStyle()->counterDirectives(
); |
| 331 if (!parentMap) | 332 if (!parentMap) |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 : SVG_PAINTTYPE_URI_RGBCOLOR; | 549 : SVG_PAINTTYPE_URI_RGBCOLOR; |
| 549 } | 550 } |
| 550 {{set_value(property)}}(paintType, color, url, | 551 {{set_value(property)}}(paintType, color, url, |
| 551 state.applyPropertyToRegularStyle(), | 552 state.applyPropertyToRegularStyle(), |
| 552 state.applyPropertyToVisitedLinkStyle()); | 553 state.applyPropertyToVisitedLinkStyle()); |
| 553 } | 554 } |
| 554 {% endmacro %} | 555 {% endmacro %} |
| 555 {{apply_svg_paint('CSSPropertyFill', 'FillPaint')}} | 556 {{apply_svg_paint('CSSPropertyFill', 'FillPaint')}} |
| 556 {{apply_svg_paint('CSSPropertyStroke', 'StrokePaint')}} | 557 {{apply_svg_paint('CSSPropertyStroke', 'StrokePaint')}} |
| 557 } // namespace blink | 558 } // namespace blink |
| OLD | NEW |