| 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 {{apply_fill_layer('CSSPropertyBackgroundBlendMode', 'BlendMode')}} | 426 {{apply_fill_layer('CSSPropertyBackgroundBlendMode', 'BlendMode')}} |
| 427 {{apply_fill_layer('CSSPropertyBackgroundClip', 'Clip')}} | 427 {{apply_fill_layer('CSSPropertyBackgroundClip', 'Clip')}} |
| 428 {{apply_fill_layer('CSSPropertyBackgroundImage', 'Image')}} | 428 {{apply_fill_layer('CSSPropertyBackgroundImage', 'Image')}} |
| 429 {{apply_fill_layer('CSSPropertyBackgroundOrigin', 'Origin')}} | 429 {{apply_fill_layer('CSSPropertyBackgroundOrigin', 'Origin')}} |
| 430 {{apply_fill_layer('CSSPropertyBackgroundPositionX', 'XPosition')}} | 430 {{apply_fill_layer('CSSPropertyBackgroundPositionX', 'XPosition')}} |
| 431 {{apply_fill_layer('CSSPropertyBackgroundPositionY', 'YPosition')}} | 431 {{apply_fill_layer('CSSPropertyBackgroundPositionY', 'YPosition')}} |
| 432 {{apply_fill_layer('CSSPropertyBackgroundRepeatX', 'RepeatX')}} | 432 {{apply_fill_layer('CSSPropertyBackgroundRepeatX', 'RepeatX')}} |
| 433 {{apply_fill_layer('CSSPropertyBackgroundRepeatY', 'RepeatY')}} | 433 {{apply_fill_layer('CSSPropertyBackgroundRepeatY', 'RepeatY')}} |
| 434 {{apply_fill_layer('CSSPropertyBackgroundSize', 'Size')}} | 434 {{apply_fill_layer('CSSPropertyBackgroundSize', 'Size')}} |
| 435 {{apply_fill_layer('CSSPropertyMaskSourceType', 'MaskSourceType')}} | 435 {{apply_fill_layer('CSSPropertyMaskSourceType', 'MaskSourceType')}} |
| 436 {{apply_fill_layer('CSSPropertyWebkitBackgroundComposite', 'Composite')}} | |
| 437 {{apply_fill_layer('CSSPropertyWebkitMaskClip', 'Clip')}} | 436 {{apply_fill_layer('CSSPropertyWebkitMaskClip', 'Clip')}} |
| 438 {{apply_fill_layer('CSSPropertyWebkitMaskComposite', 'Composite')}} | 437 {{apply_fill_layer('CSSPropertyWebkitMaskComposite', 'Composite')}} |
| 439 {{apply_fill_layer('CSSPropertyWebkitMaskImage', 'Image')}} | 438 {{apply_fill_layer('CSSPropertyWebkitMaskImage', 'Image')}} |
| 440 {{apply_fill_layer('CSSPropertyWebkitMaskOrigin', 'Origin')}} | 439 {{apply_fill_layer('CSSPropertyWebkitMaskOrigin', 'Origin')}} |
| 441 {{apply_fill_layer('CSSPropertyWebkitMaskPositionX', 'XPosition')}} | 440 {{apply_fill_layer('CSSPropertyWebkitMaskPositionX', 'XPosition')}} |
| 442 {{apply_fill_layer('CSSPropertyWebkitMaskPositionY', 'YPosition')}} | 441 {{apply_fill_layer('CSSPropertyWebkitMaskPositionY', 'YPosition')}} |
| 443 {{apply_fill_layer('CSSPropertyWebkitMaskRepeatX', 'RepeatX')}} | 442 {{apply_fill_layer('CSSPropertyWebkitMaskRepeatX', 'RepeatX')}} |
| 444 {{apply_fill_layer('CSSPropertyWebkitMaskRepeatY', 'RepeatY')}} | 443 {{apply_fill_layer('CSSPropertyWebkitMaskRepeatY', 'RepeatY')}} |
| 445 {{apply_fill_layer('CSSPropertyWebkitMaskSize', 'Size')}} | 444 {{apply_fill_layer('CSSPropertyWebkitMaskSize', 'Size')}} |
| 446 | 445 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 paintType = url.isEmpty() ? SVG_PAINTTYPE_RGBCOLOR : SVG_PAINTTYPE_URI_R
GBCOLOR; | 523 paintType = url.isEmpty() ? SVG_PAINTTYPE_RGBCOLOR : SVG_PAINTTYPE_URI_R
GBCOLOR; |
| 525 } | 524 } |
| 526 {{set_value(property)}}(paintType, color, url, | 525 {{set_value(property)}}(paintType, color, url, |
| 527 state.applyPropertyToRegularStyle(), | 526 state.applyPropertyToRegularStyle(), |
| 528 state.applyPropertyToVisitedLinkStyle()); | 527 state.applyPropertyToVisitedLinkStyle()); |
| 529 } | 528 } |
| 530 {% endmacro %} | 529 {% endmacro %} |
| 531 {{apply_svg_paint('CSSPropertyFill', 'FillPaint')}} | 530 {{apply_svg_paint('CSSPropertyFill', 'FillPaint')}} |
| 532 {{apply_svg_paint('CSSPropertyStroke', 'StrokePaint')}} | 531 {{apply_svg_paint('CSSPropertyStroke', 'StrokePaint')}} |
| 533 } // namespace blink | 532 } // namespace blink |
| OLD | NEW |