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

Unified Diff: third_party/WebKit/Source/build/scripts/make_style_shorthands.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
Index: third_party/WebKit/Source/build/scripts/make_style_shorthands.py
diff --git a/third_party/WebKit/Source/build/scripts/make_style_shorthands.py b/third_party/WebKit/Source/build/scripts/make_style_shorthands.py
index db13d4791b9940253c4e1ab48c541d1d9a7c6b53..655f26fec51b01813daaa6aab8d4414f2f0d20c1 100755
--- a/third_party/WebKit/Source/build/scripts/make_style_shorthands.py
+++ b/third_party/WebKit/Source/build/scripts/make_style_shorthands.py
@@ -31,7 +31,7 @@ from collections import defaultdict
import sys
import css_properties
-import in_generator
+import json5_generator
from name_utilities import enum_for_css_property
from name_utilities import lower_first
import template_expander
@@ -40,8 +40,8 @@ import template_expander
class StylePropertyShorthandWriter(css_properties.CSSProperties):
class_name = 'StylePropertyShorthand'
- def __init__(self, in_file_path):
- super(StylePropertyShorthandWriter, self).__init__(in_file_path)
+ def __init__(self, json5_file_path):
+ super(StylePropertyShorthandWriter, self).__init__(json5_file_path)
self._outputs = {
('StylePropertyShorthand.cpp'): self.generate_style_property_shorthand_cpp,
('StylePropertyShorthand.h'): self.generate_style_property_shorthand_h}
@@ -74,4 +74,4 @@ class StylePropertyShorthandWriter(css_properties.CSSProperties):
}
if __name__ == '__main__':
- in_generator.Maker(StylePropertyShorthandWriter).main(sys.argv)
+ json5_generator.Maker(StylePropertyShorthandWriter).main()
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_style_builder.py ('k') | third_party/WebKit/Source/build/scripts/scripts.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698