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 field in fields if field.field_type_path != None %} | 9 {% for path in include_paths %} |
10 #include "{{field.field_type_path}}.h" | 10 #include "{{path}}" |
11 {% endfor %} | 11 {% endfor %} |
12 | 12 |
13 {# Returns the default value for the field, converted to fit in the storage cont
ainer. #} | 13 {# Returns the default value for the field, converted to fit in the storage cont
ainer. #} |
14 {% macro default_value(field) -%} | 14 {% macro default_value(field) -%} |
15 {# We only support enum fields for now. #} | 15 {# We only support enum fields for now. #} |
16 static_cast<unsigned>({{field.default_value}}) | 16 static_cast<unsigned>({{field.default_value}}) |
17 {%- endmacro %} | 17 {%- endmacro %} |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 protected: | 126 protected: |
127 // Storage. | 127 // Storage. |
128 {% for field in fields %} | 128 {% for field in fields %} |
129 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} | 129 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |
130 {% endfor %} | 130 {% endfor %} |
131 }; | 131 }; |
132 | 132 |
133 } // namespace blink | 133 } // namespace blink |
134 | 134 |
135 #endif // ComputedStyleBase_h | 135 #endif // ComputedStyleBase_h |
OLD | NEW |