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 26f434a33617114ac6131bbc736dc55678a82f2f..b84c93d4180595cc3c45f2229d41bca4255d22ef 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 |
@@ -207,11 +207,12 @@ def _create_diff_groups(fields_to_diff, methods_to_diff, root_group): |
if any(field.property_name in (fields_to_diff + field_dependencies) for field in subgroup.all_fields): |
diff_group.subgroups.append(_create_diff_groups(fields_to_diff, methods_to_diff, subgroup)) |
for field in root_group.fields: |
- if field.property_name in fields_to_diff: |
- diff_group.expressions.append(field.getter_expression) |
- for entry in methods_to_diff: |
- if field.property_name in entry['field_dependencies']: |
- diff_group.expressions.append(entry['method']) |
+ if field.is_property: |
alancutter (OOO until 2018)
2017/05/24 03:31:17
I don't fully understand this. You add field_depen
nainar
2017/05/24 06:07:21
field.is_property is a badly named field that indi
alancutter (OOO until 2018)
2017/05/24 07:25:36
Yes please, that sounds like it would be much bett
nainar
2017/05/24 07:42:14
Done in this patch.
|
+ if field.property_name in fields_to_diff: |
+ diff_group.expressions.append(field.getter_expression) |
+ for entry in methods_to_diff: |
+ if field.property_name in entry['field_dependencies']: |
+ diff_group.expressions.append(entry['method']) |
return diff_group |