| OLD | NEW |
| 1 {% from 'macros.tmpl' import license, print_if %} | 1 {% from 'macros.tmpl' import license, print_if %} |
| 2 {% from 'fields/field.tmpl' import encode, getter_expression, setter_expression,
declare_storage, fieldwise_compare, fieldwise_copy, fieldwise_diff, fieldwise_p
ointer_compare_inherited %} | 2 {% from 'fields/field.tmpl' import encode, getter_expression, setter_expression,
declare_storage, fieldwise_compare, fieldwise_copy, fieldwise_diff, fieldwise_p
ointer_compare_inherited %} |
| 3 {% from 'fields/group.tmpl' import define_field_group_class %} | 3 {% from 'fields/group.tmpl' import define_field_group_class %} |
| 4 {{license()}} | 4 {{license()}} |
| 5 | 5 |
| 6 #ifndef ComputedStyleBase_h | 6 #ifndef ComputedStyleBase_h |
| 7 #define ComputedStyleBase_h | 7 #define ComputedStyleBase_h |
| 8 | 8 |
| 9 #include "core/style/ComputedStyleConstants.h" | 9 #include "core/style/ComputedStyleConstants.h" |
| 10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| 11 #include "core/style/DataRef.h" | 11 #include "core/style/DataRef.h" |
| 12 #include "core/style/StyleDifference.h" | 12 #include "core/style/StyleDifference.h" |
| 13 #include "platform/wtf/SizeAssertions.h" | 13 #include "platform/wtf/SizeAssertions.h" |
| 14 #include "core/layout/LayoutTheme.h" | 14 #include "core/layout/LayoutTheme.h" |
| 15 {% for path in include_paths %} | 15 {% for path in include_paths %} |
| 16 #include "{{path}}" | 16 #include "{{path}}" |
| 17 {% endfor %} | 17 {% endfor %} |
| 18 | 18 |
| 19 {# Each field template has macros that we can call to generate specific | 19 {# Each field template has macros that we can call to generate specific |
| 20 aspects of the field (e.g. getters, setters). | 20 aspects of the field (e.g. getters, setters). |
| 21 #} | 21 #} |
| 22 {% import 'fields/keyword.tmpl' as keyword %} | 22 {% import 'fields/keyword.tmpl' as keyword %} |
| 23 {% import 'fields/keyword_set.tmpl' as keyword_set %} |
| 23 {% import 'fields/primitive.tmpl' as primitive %} | 24 {% import 'fields/primitive.tmpl' as primitive %} |
| 24 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %} | 25 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %} |
| 25 {% import 'fields/storage_only.tmpl' as storage_only %} | 26 {% import 'fields/storage_only.tmpl' as storage_only %} |
| 26 {% import 'fields/external.tmpl' as external %} | 27 {% import 'fields/external.tmpl' as external %} |
| 27 {% from 'fields/field.tmpl' import encode %} | 28 {% from 'fields/field.tmpl' import encode %} |
| 28 {% set field_templates = { | 29 {% set field_templates = { |
| 29 'keyword': keyword, | 30 'keyword': keyword, |
| 31 'keyword_set': keyword_set, |
| 30 'primitive': primitive, | 32 'primitive': primitive, |
| 31 'monotonic_flag': monotonic_flag, | 33 'monotonic_flag': monotonic_flag, |
| 32 'storage_only': storage_only, | 34 'storage_only': storage_only, |
| 33 'external': external | 35 'external': external |
| 34 } %} | 36 } %} |
| 35 | 37 |
| 36 namespace blink { | 38 namespace blink { |
| 37 | 39 |
| 38 struct SameSizeAsComputedStyleBase { | 40 struct SameSizeAsComputedStyleBase { |
| 39 {% if computed_style.subgroups is defined %} | 41 {% if computed_style.subgroups is defined %} |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 230 |
| 229 private: | 231 private: |
| 230 {% for field in computed_style.fields %} | 232 {% for field in computed_style.fields %} |
| 231 {{declare_storage(field)}} | 233 {{declare_storage(field)}} |
| 232 {% endfor %} | 234 {% endfor %} |
| 233 }; | 235 }; |
| 234 | 236 |
| 235 } // namespace blink | 237 } // namespace blink |
| 236 | 238 |
| 237 #endif // ComputedStyleBase_h | 239 #endif // ComputedStyleBase_h |
| OLD | NEW |