Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
index ac954700c5542ff38b67240ce8b6dd17ea13dd78..400562f27ffe5f3d71c0fada33e7d0111636d3ac 100644 |
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
@@ -148,7 +148,7 @@ class CORE_EXPORT ComputedStyleBase { |
// TODO(sashab): Remove initialFoo() static methods and update callers to |
// use resetFoo(), which can be more efficient. |
- {% for field in computed_style.all_fields %} |
+ {% for field in computed_style.all_fields|sort(attribute='name') %} |
// {{field.property_name}} |
{{field_templates[field.field_template].decl_public_methods(field)|indent(2)}} |
@@ -173,7 +173,7 @@ class CORE_EXPORT ComputedStyleBase { |
{% endfor %} |
} |
- {% for field in computed_style.all_fields %} |
+ {% for field in computed_style.all_fields|sort(attribute='name') %} |
{% if field.field_template in ('storage_only', 'monotonic_flag', 'external') %} |
// {{field.property_name}} |
{{field_templates[field.field_template].decl_protected_methods(field)|indent(2)}} |