Chromium Code Reviews

Side by Side Diff: Source/core/scripts/templates/StyleBuilderFunctions.cpp

Issue 22546004: Remove .tmpl extension from Jinja templates in core Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
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
(...skipping 13 matching lines...)
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
30 {%- macro declare_value_function(property_id) -%} 30 {%- macro declare_value_function(property_id) -%}
31 void StyleBuilderFunctions::applyValue{{property_id}}(StyleResolverState& state, CSSValue* value) 31 void StyleBuilderFunctions::applyValue{{property_id}}(StyleResolverState& state, CSSValue* value)
32 {%- endmacro %} 32 {%- endmacro %}
33 33
34 // FIXME: This is duplicated in StyleBuilder.cpp.tmpl, but we'll move the 34 // FIXME: This is duplicated in StyleBuilder.cpp, but we'll move the
35 // function definitions there over to here later. 35 // function definitions there over to here later.
36 {%- macro set_value(property) %} 36 {%- macro set_value(property) %}
37 {%- if property.svg -%} 37 {%- if property.svg -%}
38 state.style()->accessSVGStyle()->{{property.setter}} 38 state.style()->accessSVGStyle()->{{property.setter}}
39 {%- else -%} 39 {%- else -%}
40 state.style()->{{property.setter}} 40 state.style()->{{property.setter}}
41 {%- endif -%} 41 {%- endif -%}
42 {%- endmacro %} 42 {%- endmacro %}
43 43
44 namespace WebCore { 44 namespace WebCore {
(...skipping 598 matching lines...)
643 } 643 }
644 {%- endmacro %} 644 {%- endmacro %}
645 645
646 {{ apply_value_string("CSSPropertyWebkitHighlight", "CSSValueNone") }} 646 {{ apply_value_string("CSSPropertyWebkitHighlight", "CSSValueNone") }}
647 {{ apply_value_string("CSSPropertyWebkitHyphenateCharacter", "CSSValueAuto") }} 647 {{ apply_value_string("CSSPropertyWebkitHyphenateCharacter", "CSSValueAuto") }}
648 {{ apply_value_string("CSSPropertyWebkitLineGrid", "CSSValueNone") }} 648 {{ apply_value_string("CSSPropertyWebkitLineGrid", "CSSValueNone") }}
649 {{ apply_value_string("CSSPropertyWebkitFlowFrom", "CSSValueNone") }} 649 {{ apply_value_string("CSSPropertyWebkitFlowFrom", "CSSValueNone") }}
650 {{ apply_value_string("CSSPropertyWebkitFlowInto", "CSSValueNone") }} 650 {{ apply_value_string("CSSPropertyWebkitFlowInto", "CSSValueNone") }}
651 651
652 } // namespace WebCore 652 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/scripts/templates/StyleBuilderFunctions.h ('k') | Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine