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/ComputedStyleBaseConstants.h" | 7 #include "core/ComputedStyleBaseConstants.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/flag.tmpl' as flag %} |
18 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %} | 18 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %} |
19 {% set field_templates = { 'keyword': keyword, 'flag': flag, 'monotonic_flag': m
onotonic_flag } %} | 19 {% import 'fields/storage_only.tmpl' as storage_only %} |
| 20 {% set field_templates = { |
| 21 'keyword': keyword, 'flag': flag, 'monotonic_flag': monotonic_flag, 'storag
e_only': storage_only |
| 22 } %} |
20 | 23 |
21 namespace blink { | 24 namespace blink { |
22 | 25 |
23 // The generated portion of ComputedStyle. For more info, see the header comment | 26 // The generated portion of ComputedStyle. For more info, see the header comment |
24 // in ComputedStyle.h. | 27 // in ComputedStyle.h. |
25 class CORE_EXPORT ComputedStyleBase { | 28 class CORE_EXPORT ComputedStyleBase { |
26 public: | 29 public: |
27 inline bool independentInheritedEqual(const ComputedStyleBase& o) const { | 30 inline bool independentInheritedEqual(const ComputedStyleBase& o) const { |
28 return ( | 31 return ( |
29 {% for field in fields if field.is_property and field.is_inherited and field
.is_independent %} | 32 {% for field in fields if field.is_property and field.is_inherited and field
.is_independent %} |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 89 |
87 // Storage. | 90 // Storage. |
88 {% for field in fields %} | 91 {% for field in fields %} |
89 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} | 92 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |
90 {% endfor %} | 93 {% endfor %} |
91 }; | 94 }; |
92 | 95 |
93 } // namespace blink | 96 } // namespace blink |
94 | 97 |
95 #endif // ComputedStyleBase_h | 98 #endif // ComputedStyleBase_h |
OLD | NEW |