| Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
|
| index 2f1fc578035e3504e31aaadef5564a9349624082..0279075420ed020b739aa1cce188f55b3d1585db 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
|
| @@ -7,7 +7,10 @@
|
| namespace blink {
|
|
|
| struct SameSizeAsComputedStyleBase {
|
| - unsigned m_bitfields[{{expected_total_field_bytes}}];
|
| + {% for type_name, fields_list in fields|rejectattr("size")|groupby('type_name') %}
|
| + {{type_name}} m_{{type_name}}[{{fields_list|length}}];
|
| + {% endfor %}
|
| + unsigned m_bitfields[{{expected_bitfield_bytes}}];
|
| };
|
| // If this fails, the packing algorithm in make_computed_style_base.py has
|
| // failed to produce the optimal packed size. To fix, update the algorithm to
|
|
|