| Index: third_party/WebKit/Source/build/scripts/css_properties.py
|
| diff --git a/third_party/WebKit/Source/build/scripts/css_properties.py b/third_party/WebKit/Source/build/scripts/css_properties.py
|
| index 88727eb95d3ae6194a8afab5a7ac001f838c63c7..0b80a98cb79e30b8d17aaebbfbde9092919bafd6 100755
|
| --- a/third_party/WebKit/Source/build/scripts/css_properties.py
|
| +++ b/third_party/WebKit/Source/build/scripts/css_properties.py
|
| @@ -3,67 +3,15 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -import in_generator
|
| +import json5_generator
|
| import name_utilities
|
|
|
|
|
| -class CSSProperties(in_generator.Writer):
|
| - defaults = {
|
| - 'alias_for': None,
|
| - 'descriptor_only': None,
|
| - 'runtime_flag': None,
|
| - 'longhands': '',
|
| - 'interpolable': False,
|
| - 'inherited': False,
|
| - 'independent': False,
|
| - 'font': False,
|
| - 'svg': False,
|
| - 'name_for_methods': None,
|
| - 'use_handlers_for': None,
|
| - 'getter': None,
|
| - 'setter': None,
|
| - 'initial': None,
|
| - 'type_name': None,
|
| - 'converter': None,
|
| - 'custom_all': False,
|
| - 'custom_initial': False,
|
| - 'custom_inherit': False,
|
| - 'custom_value': False,
|
| - 'builder_skip': False,
|
| - 'direction_aware': False,
|
| - 'priority': 'Low',
|
| - 'api_class': None,
|
| - # Generated ComputedStyle annotations.
|
| - 'field_storage_type': None,
|
| - # Typed OM annotations.
|
| - 'typedom_types': [],
|
| - 'keywords': [],
|
| - 'initial_keyword': None,
|
| - 'keyword_only': False,
|
| - 'supports_percentage': False,
|
| - 'repeated': False,
|
| - }
|
| -
|
| - valid_values = {
|
| - 'interpolable': (True, False),
|
| - 'inherited': (True, False),
|
| - 'independent': (True, False),
|
| - 'font': (True, False),
|
| - 'svg': (True, False),
|
| - 'custom_all': (True, False),
|
| - 'custom_initial': (True, False),
|
| - 'custom_inherit': (True, False),
|
| - 'custom_value': (True, False),
|
| - 'builder_skip': (True, False),
|
| - 'direction_aware': (True, False),
|
| - 'priority': ('Animation', 'High', 'Low'),
|
| - 'keyword_only': (True, False),
|
| - }
|
| -
|
| +class CSSProperties(json5_generator.Writer):
|
| def __init__(self, file_paths):
|
| - in_generator.Writer.__init__(self, file_paths)
|
| + json5_generator.Writer.__init__(self, file_paths)
|
|
|
| - properties = self.in_file.name_dictionaries
|
| + properties = self.json5_file.name_dictionaries
|
|
|
| # Sort properties by priority, then alphabetically.
|
| for property in properties:
|
|
|