OLD | NEW |
1 {% from 'macros.tmpl' import license, print_if %} | 1 {% from 'macros.tmpl' import license, print_if %} |
2 {{license()}} | 2 {{license()}} |
3 | 3 |
4 #ifndef ComputedStyleBase_h | 4 #ifndef ComputedStyleBase_h |
5 #define ComputedStyleBase_h | 5 #define ComputedStyleBase_h |
6 | 6 |
7 #include "core/style/ComputedStyleConstants.h" | 7 #include "core/style/ComputedStyleConstants.h" |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 {% for path in include_paths %} | 9 {% for path in include_paths %} |
10 #include "{{path}}" | 10 #include "{{path}}" |
11 {% endfor %} | 11 {% endfor %} |
12 | 12 |
13 {# Each field template has macros that we can call to generate specific | 13 {# Each field template has macros that we can call to generate specific |
14 aspects of the field (e.g. getters, setters). | 14 aspects of the field (e.g. getters, setters). |
15 #} | 15 #} |
16 {% import 'fields/keyword.tmpl' as keyword %} | 16 {% import 'fields/keyword.tmpl' as keyword %} |
17 {% import 'fields/flag.tmpl' as flag %} | 17 {% import 'fields/primitive.tmpl' as primitive %} |
18 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %} | 18 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %} |
19 {% import 'fields/storage_only.tmpl' as storage_only %} | 19 {% import 'fields/storage_only.tmpl' as storage_only %} |
20 {% import 'fields/external.tmpl' as external %} | 20 {% import 'fields/external.tmpl' as external %} |
21 {% from 'fields/field.tmpl' import encode %} | 21 {% from 'fields/field.tmpl' import encode %} |
22 {% set field_templates = { | 22 {% set field_templates = { |
23 'keyword': keyword, | 23 'keyword': keyword, |
24 'flag': flag, | 24 'primitive': primitive, |
25 'monotonic_flag': monotonic_flag, | 25 'monotonic_flag': monotonic_flag, |
26 'storage_only': storage_only, | 26 'storage_only': storage_only, |
27 'external': external | 27 'external': external |
28 } %} | 28 } %} |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 // The generated portion of ComputedStyle. For more info, see the header comment | 32 // The generated portion of ComputedStyle. For more info, see the header comment |
33 // in ComputedStyle.h. | 33 // in ComputedStyle.h. |
34 class CORE_EXPORT ComputedStyleBase { | 34 class CORE_EXPORT ComputedStyleBase { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} | 101 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |
102 {% else %} | 102 {% else %} |
103 {{field.type_name}} {{field.name}}; | 103 {{field.type_name}} {{field.name}}; |
104 {% endif %} | 104 {% endif %} |
105 {% endfor %} | 105 {% endfor %} |
106 }; | 106 }; |
107 | 107 |
108 } // namespace blink | 108 } // namespace blink |
109 | 109 |
110 #endif // ComputedStyleBase_h | 110 #endif // ComputedStyleBase_h |
OLD | NEW |