| Index: Source/build/scripts/css_properties.py
|
| diff --git a/Source/build/scripts/css_properties.py b/Source/build/scripts/css_properties.py
|
| index cc4d9877975d769415be2d17ef0380bce203db49..83f2196354da92aabd215692ec1fcef6216ec9e5 100755
|
| --- a/Source/build/scripts/css_properties.py
|
| +++ b/Source/build/scripts/css_properties.py
|
| @@ -9,10 +9,7 @@ from name_utilities import lower_first
|
|
|
| class CSSProperties(in_generator.Writer):
|
| defaults = {
|
| - 'alias_for': None,
|
| 'longhands': '',
|
| - 'animatable': False,
|
| - 'inherited': False,
|
| 'font': False,
|
| 'svg': False,
|
| 'name_for_methods': None,
|
| @@ -31,8 +28,6 @@ class CSSProperties(in_generator.Writer):
|
| }
|
|
|
| valid_values = {
|
| - 'animatable': (True, False),
|
| - 'inherited': (True, False),
|
| 'font': (True, False),
|
| 'svg': (True, False),
|
| 'custom_all': (True, False),
|
| @@ -48,18 +43,10 @@ class CSSProperties(in_generator.Writer):
|
|
|
| properties = self.in_file.name_dictionaries
|
|
|
| - self._aliases = {property['name']: property['alias_for'] for property in properties if property['alias_for']}
|
| - properties = [property for property in properties if not property['alias_for']]
|
| -
|
| - assert len(properties) <= 1024, 'There are more than 1024 CSS Properties, you need to update CSSProperty.h/StylePropertyMetadata m_propertyID accordingly.'
|
| - # We currently assign 0 to CSSPropertyInvalid
|
| - self._first_enum_value = 1
|
| - for offset, property in enumerate(properties):
|
| + for property in properties:
|
| property['property_id'] = css_name_to_enum(property['name'])
|
| property['upper_camel_name'] = camelcase_css_name(property['name'])
|
| property['lower_camel_name'] = lower_first(property['upper_camel_name'])
|
| - property['enum_value'] = self._first_enum_value + offset
|
| - property['is_internal'] = property['name'].startswith('-internal-')
|
|
|
| self._properties_list = properties
|
| self._properties = {property['property_id']: property for property in properties}
|
|
|