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}}" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 {% endfor %} | 77 {% endfor %} |
78 protected: | 78 protected: |
79 ALWAYS_INLINE ComputedStyleBase() : | 79 ALWAYS_INLINE ComputedStyleBase() : |
80 {% for field in fields %} | 80 {% for field in fields %} |
81 {{field.name}}(static_cast<unsigned>({{field.default_value}})){{print_if(n
ot loop.last, ',')}} | 81 {{field.name}}(static_cast<unsigned>({{field.default_value}})){{print_if(n
ot loop.last, ',')}} |
82 {% endfor %} | 82 {% endfor %} |
83 {} | 83 {} |
84 | 84 |
85 ~ComputedStyleBase() = default; | 85 ~ComputedStyleBase() = default; |
86 | 86 |
87 ALWAYS_INLINE ComputedStyleBase(const ComputedStyleBase& o) : | |
88 {% for field in fields %} | |
89 {{field.name}}(o.{{field.name}}){{print_if(not loop.last, ',')}} | |
90 {% endfor %} | |
91 {} | |
92 | |
93 // Storage. | 87 // Storage. |
94 {% for field in fields %} | 88 {% for field in fields %} |
95 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} | 89 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |
96 {% endfor %} | 90 {% endfor %} |
97 }; | 91 }; |
98 | 92 |
99 } // namespace blink | 93 } // namespace blink |
100 | 94 |
101 #endif // ComputedStyleBase_h | 95 #endif // ComputedStyleBase_h |
OLD | NEW |