| OLD | NEW |
| 1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
| 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 declare_field_group_class %} | 3 {% from 'fields/group.tmpl' import declare_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/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/layout/LayoutTheme.h" | 10 #include "core/layout/LayoutTheme.h" |
| 11 #include "core/style/ComputedStyleConstants.h" | 11 #include "core/style/ComputedStyleConstants.h" |
| 12 #include "core/style/DataRef.h" | 12 #include "core/style/DataRef.h" |
| 13 #include "core/style/MemberCopy.h" | 13 #include "core/style/MemberCopy.h" |
| 14 #include "core/style/DataPersistent.h" | 14 #include "core/style/DataPersistent.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/multi_keyword.tmpl' as multi_keyword %} |
| 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 {% import 'fields/pointer.tmpl' as pointer %} | 28 {% import 'fields/pointer.tmpl' as pointer %} |
| 28 {% from 'fields/field.tmpl' import encode %} | 29 {% from 'fields/field.tmpl' import encode %} |
| 29 {% set field_templates = { | 30 {% set field_templates = { |
| 30 'keyword': keyword, | 31 'keyword': keyword, |
| 32 'multi_keyword': multi_keyword, |
| 31 'primitive': primitive, | 33 'primitive': primitive, |
| 32 'monotonic_flag': monotonic_flag, | 34 'monotonic_flag': monotonic_flag, |
| 33 'storage_only': storage_only, | 35 'storage_only': storage_only, |
| 34 'external': external, | 36 'external': external, |
| 35 'pointer': pointer | 37 'pointer': pointer |
| 36 } %} | 38 } %} |
| 37 | 39 |
| 38 namespace blink { | 40 namespace blink { |
| 39 | 41 |
| 40 // Forward declaration for diff functions. | 42 // Forward declaration for diff functions. |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 {% endfor %} | 179 {% endfor %} |
| 178 | 180 |
| 179 {% for field in computed_style.fields %} | 181 {% for field in computed_style.fields %} |
| 180 {{declare_storage(field)}} | 182 {{declare_storage(field)}} |
| 181 {% endfor %} | 183 {% endfor %} |
| 182 }; | 184 }; |
| 183 | 185 |
| 184 } // namespace blink | 186 } // namespace blink |
| 185 | 187 |
| 186 #endif // ComputedStyleBase_h | 188 #endif // ComputedStyleBase_h |
| OLD | NEW |