Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(973)

Unified Diff: third_party/WebKit/Source/build/scripts/css_properties.py

Issue 2620883002: Convert Settings.in, CSSValueKeywords.in, SVGCSSValueKeywords.in to json5 (Closed)
Patch Set: Convert CSSProperties.in to json5 format Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/json5_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/json5_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698