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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 // style that are marked as inherited by this style. | 74 // style that are marked as inherited by this style. |
75 void PropagateIndependentInheritedProperties( | 75 void PropagateIndependentInheritedProperties( |
76 const ComputedStyleBase& parentStyle); | 76 const ComputedStyleBase& parentStyle); |
77 | 77 |
78 // Fields. | 78 // Fields. |
79 // TODO(sashab): Remove initialFoo() static methods and update callers to | 79 // TODO(sashab): Remove initialFoo() static methods and update callers to |
80 // use resetFoo(), which can be more efficient. | 80 // use resetFoo(), which can be more efficient. |
81 | 81 |
82 {% for field in fields %} | 82 {% for field in fields %} |
83 // {{field.property_name}} | 83 // {{field.property_name}} |
84 {{field_templates[field.field_template].decl_methods(field)|indent(2)}} | 84 {{field_templates[field.field_template].decl_public_methods(field)|indent(2)}} |
85 | 85 |
86 {% endfor %} | 86 {% endfor %} |
87 protected: | 87 protected: |
88 // Constructor and destructor are protected so that only the parent class Comp utedStyle | 88 // Constructor and destructor are protected so that only the parent class Comp utedStyle |
89 // can instantiate this class. | 89 // can instantiate this class. |
90 ALWAYS_INLINE ComputedStyleBase() : | 90 ALWAYS_INLINE ComputedStyleBase() : |
91 {% for field in fields %} | 91 {% for field in fields %} |
92 {{field.name}}({{encode(field, field.default_value)}}){{print_if(not loop. last, ',')}} | 92 {{field.name}}({{encode(field, field.default_value)}}){{print_if(not loop. last, ',')}} |
93 {% endfor %} | 93 {% endfor %} |
94 {} | 94 {} |
95 | 95 |
96 {% for field in fields %} | |
97 {% if field.field_template in ('storage_only', 'monotonic_flag', 'external') % } | |
suzyh_UTC10 (ex-contributor)
2017/04/19 08:03:33
Why 'external'? This is not mentioned in the CL de
nainar
2017/04/19 08:49:35
Forgot to update the CL - done now.
suzyh_UTC10 (ex-contributor)
2017/04/20 00:12:18
The headline of the CL description does not mentio
suzyh_UTC10 (ex-contributor)
2017/04/20 03:48:02
Missed this comment?
nainar
2017/04/20 05:15:58
Edited it to some fields. And yes I did miss it.
| |
98 // {{field.property_name}} | |
99 {{field_templates[field.field_template].decl_protected_methods(field)|indent(2 )}} | |
100 | |
101 {% endif %} | |
102 {% endfor %} | |
103 | |
96 ~ComputedStyleBase() = default; | 104 ~ComputedStyleBase() = default; |
97 | 105 |
98 // Storage. | 106 // Storage. |
99 {% for field in fields %} | 107 {% for field in fields %} |
100 {% if field.is_bit_field %} | 108 {% if field.is_bit_field %} |
101 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} | 109 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |
102 {% else %} | 110 {% else %} |
103 {{field.type_name}} {{field.name}}; | 111 {{field.type_name}} {{field.name}}; |
104 {% endif %} | 112 {% endif %} |
105 {% endfor %} | 113 {% endfor %} |
106 }; | 114 }; |
107 | 115 |
108 } // namespace blink | 116 } // namespace blink |
109 | 117 |
110 #endif // ComputedStyleBase_h | 118 #endif // ComputedStyleBase_h |
OLD | NEW |