OLD | NEW |
1 {% from 'macros.tmpl' import license, print_if %} | 1 {% from 'macros.tmpl' import license, print_if %} |
2 {% from 'fields/field.tmpl' import encode, getter_expression, setter_expression,
declare_storage, fieldwise_compare, fieldwise_copy, fieldwise_diff, fieldwise_p
ointer_compare_inherited %} | 2 {% from 'fields/field.tmpl' import encode, getter_expression, setter_expression,
declare_storage, fieldwise_compare, fieldwise_copy, fieldwise_diff, fieldwise_p
ointer_compare_inherited %} |
3 {% from 'fields/group.tmpl' import define_field_group_class %} | 3 {% from 'fields/group.tmpl' import define_field_group_class %} |
4 {{license()}} | 4 {{license()}} |
5 | 5 |
6 #ifndef ComputedStyleBase_h | 6 #ifndef ComputedStyleBase_h |
7 #define ComputedStyleBase_h | 7 #define ComputedStyleBase_h |
8 | 8 |
9 #include "core/style/ComputedStyleConstants.h" | 9 #include "core/style/ComputedStyleConstants.h" |
10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 | 115 |
116 inline bool InheritedEqual(const ComputedStyleBase& o) const { | 116 inline bool InheritedEqual(const ComputedStyleBase& o) const { |
117 return IndependentInheritedEqual(o) && NonIndependentInheritedEqual(o); | 117 return IndependentInheritedEqual(o) && NonIndependentInheritedEqual(o); |
118 } | 118 } |
119 | 119 |
120 inline bool NonInheritedEqual(const ComputedStyleBase& o) const { | 120 inline bool NonInheritedEqual(const ComputedStyleBase& o) const { |
121 return ( | 121 return ( |
122 {{fieldwise_compare(computed_style, computed_style.all_fields | 122 {{fieldwise_compare(computed_style, computed_style.all_fields |
123 |selectattr("is_property") | 123 |selectattr("is_property") |
124 |rejectattr("has_custom_compare_and_copy") | |
125 |rejectattr("is_inherited") | 124 |rejectattr("is_inherited") |
126 |list | 125 |list |
127 )|indent(8)}} | 126 )|indent(8)}} |
128 true | 127 true |
129 ); | 128 ); |
130 } | 129 } |
131 | 130 |
132 inline bool InheritedDataShared(const ComputedStyleBase& o) const { | 131 inline bool InheritedDataShared(const ComputedStyleBase& o) const { |
133 return ( | 132 return ( |
134 {{fieldwise_pointer_compare_inherited(computed_style)|indent(8)}} | 133 {{fieldwise_pointer_compare_inherited(computed_style)|indent(8)}} |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 228 |
230 private: | 229 private: |
231 {% for field in computed_style.fields %} | 230 {% for field in computed_style.fields %} |
232 {{declare_storage(field)}} | 231 {{declare_storage(field)}} |
233 {% endfor %} | 232 {% endfor %} |
234 }; | 233 }; |
235 | 234 |
236 } // namespace blink | 235 } // namespace blink |
237 | 236 |
238 #endif // ComputedStyleBase_h | 237 #endif // ComputedStyleBase_h |
OLD | NEW |