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}}" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 {% for field in fields %} | 96 {% for field in fields %} |
97 {% if field.field_template in ('storage_only', 'monotonic_flag', 'external') %
} | 97 {% if field.field_template in ('storage_only', 'monotonic_flag', 'external') %
} |
98 // {{field.property_name}} | 98 // {{field.property_name}} |
99 {{field_templates[field.field_template].decl_protected_methods(field)|indent(2
)}} | 99 {{field_templates[field.field_template].decl_protected_methods(field)|indent(2
)}} |
100 | 100 |
101 {% endif %} | 101 {% endif %} |
102 {% endfor %} | 102 {% endfor %} |
103 | 103 |
104 ~ComputedStyleBase() = default; | 104 ~ComputedStyleBase() = default; |
105 | 105 |
| 106 private: |
106 // Storage. | 107 // Storage. |
107 {% for field in fields %} | 108 {% for field in fields %} |
108 {% if field.is_bit_field %} | 109 {% if field.is_bit_field %} |
109 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} | 110 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |
110 {% else %} | 111 {% else %} |
111 {{field.type_name}} {{field.name}}; | 112 {{field.type_name}} {{field.name}}; |
112 {% endif %} | 113 {% endif %} |
113 {% endfor %} | 114 {% endfor %} |
114 }; | 115 }; |
115 | 116 |
116 } // namespace blink | 117 } // namespace blink |
117 | 118 |
118 #endif // ComputedStyleBase_h | 119 #endif // ComputedStyleBase_h |
OLD | NEW |