OLD | NEW |
1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
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.storage_type_path != None %} |
| 10 #include "{{field.storage_type_path}}.h" |
| 11 {% endfor %} |
9 | 12 |
10 {# 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. #} |
11 {% macro default_value(field) %} | 14 {% macro default_value(field) %} |
12 {# We only support enum fields for now. #} | 15 {# We only support enum fields for now. #} |
13 static_cast<unsigned>({{field.default_value}}){% endmacro %} | 16 static_cast<unsigned>({{field.default_value}}){% endmacro %} |
14 | 17 |
15 namespace blink { | 18 namespace blink { |
16 | 19 |
17 // The generated portion of ComputedStyle. For more info, see the header comment | 20 // The generated portion of ComputedStyle. For more info, see the header comment |
18 // in ComputedStyle.h. | 21 // in ComputedStyle.h. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 protected: | 112 protected: |
110 // Storage. | 113 // Storage. |
111 {% for field in fields %} | 114 {% for field in fields %} |
112 unsigned {{field.name}} : {{field.size}}; // {{field.storage_type}} | 115 unsigned {{field.name}} : {{field.size}}; // {{field.storage_type}} |
113 {% endfor %} | 116 {% endfor %} |
114 }; | 117 }; |
115 | 118 |
116 } // namespace blink | 119 } // namespace blink |
117 | 120 |
118 #endif // ComputedStyleBase_h | 121 #endif // ComputedStyleBase_h |
OLD | NEW |