OLD | NEW |
1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
2 {{license()}} | 2 {{license()}} |
3 | 3 |
4 #include "core/ComputedStyleBase.h" | 4 #include "core/ComputedStyleBase.h" |
5 #include "wtf/SizeAssertions.h" | 5 #include "platform/wtf/SizeAssertions.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 struct SameSizeAsComputedStyleBase { | 9 struct SameSizeAsComputedStyleBase { |
10 {% for field in fields|rejectattr("is_bit_field") %} | 10 {% for field in fields|rejectattr("is_bit_field") %} |
11 {{field.type_name}} {{field.name}}}; | 11 {{field.type_name}} {{field.name}}}; |
12 {% endfor %} | 12 {% endfor %} |
13 unsigned m_bit_fields[{{expected_bit_field_bytes}}]; | 13 unsigned m_bit_fields[{{expected_bit_field_bytes}}]; |
14 }; | 14 }; |
15 // If this fails, the packing algorithm in make_computed_style_base.py has | 15 // If this fails, the packing algorithm in make_computed_style_base.py has |
(...skipping 17 matching lines...) Expand all Loading... |
33 | 33 |
34 void ComputedStyleBase::PropagateIndependentInheritedProperties( | 34 void ComputedStyleBase::PropagateIndependentInheritedProperties( |
35 const ComputedStyleBase& parentStyle) { | 35 const ComputedStyleBase& parentStyle) { |
36 {% for field in fields if field.is_property and field.is_independent %} | 36 {% for field in fields if field.is_property and field.is_independent %} |
37 if ({{field.is_inherited_method_name}}()) | 37 if ({{field.is_inherited_method_name}}()) |
38 {{field.setter_method_name}}(parentStyle.{{field.getter_method_name}}()); | 38 {{field.setter_method_name}}(parentStyle.{{field.getter_method_name}}()); |
39 {% endfor %} | 39 {% endfor %} |
40 } | 40 } |
41 | 41 |
42 } // namespace blink | 42 } // namespace blink |
OLD | NEW |