| Index: third_party/WebKit/Source/build/scripts/make_computed_style_base.py
|
| diff --git a/third_party/WebKit/Source/build/scripts/make_computed_style_base.py b/third_party/WebKit/Source/build/scripts/make_computed_style_base.py
|
| index 7889fcb7f85f809356a95b544ae783dcc8ec1662..19a0e73828e2edbe76b38f55ba84262beec73371 100755
|
| --- a/third_party/WebKit/Source/build/scripts/make_computed_style_base.py
|
| +++ b/third_party/WebKit/Source/build/scripts/make_computed_style_base.py
|
| @@ -138,6 +138,10 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter):
|
| is_inherited_method_name=property_name_lower + 'IsInherited',
|
| ))
|
|
|
| + # Small optimization: order fields by size, from largest to smallest,
|
| + # to reduce wasted space from alignment.
|
| + self._fields.sort(key=lambda f: f.size, reverse=True)
|
| +
|
| @template_expander.use_jinja('ComputedStyleBase.h.tmpl')
|
| def generate_base_computed_style_h(self):
|
| return {
|
|
|