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

Issue 2620883002: Convert Settings.in, CSSValueKeywords.in, SVGCSSValueKeywords.in to json5 (Closed)

Created:
3 years, 11 months ago by ktyliu
Modified:
3 years, 8 months ago
Reviewers:
sashab, dcheng
CC:
ajuma+watch_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-html_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, cmumford, danakj+watch_chromium.org, dglazkov+blink, dominicc+watchlist_chromium.org, dshwang, Dirk Pranke, drott+blinkwatch_chromium.org, krit, f(malita), fs, gavinp+loader_chromium.org, gyuyoung2, haraken, Nate Chapin, jbroman, jsbell+idb_chromium.org, Justin Novosad, kinuko+watch, kouhei+svg_chromium.org, loading-reviews+fetch_chromium.org, loading-reviews+parser_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, tyoshino+watch_chromium.org, alancutter (OOO until 2018)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert Settings.in, CSSValueKeywords.in, SVGCSSValueKeywords.in to json5 Add json5_generator similar to in_generator and in_file to read json5 configs with default and valid_value&valid_type support. Link to design doc in bug. BUG=677884 Review-Url: https://codereview.chromium.org/2620883002 Cr-Commit-Position: refs/heads/master@{#443949} Committed: https://chromium.googlesource.com/chromium/src/+/4a9064a99588486772c9c2ec88e84e2a4f444f65

Patch Set 1 #

Patch Set 2 : Implement JSON5 generator #

Patch Set 3 : Support data array and data map #

Patch Set 4 : Convert 3 .in files to .json5 #

Patch Set 5 : Fix SettingsMacros.h.tmpl which now needs to be precise with none comparison. Also deleted stray in… #

Patch Set 6 : Fix comment indent in data #

Total comments: 4

Patch Set 7 : Use argparse #

Patch Set 8 : Convert CSSProperties.in to json5 format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2790 lines, -774 lines) Patch
M third_party/WebKit/Source/build/scripts/css_properties.py View 1 2 3 4 5 6 7 1 chunk +4 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/json5_generator.py View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/make_css_property_apis.py View 1 2 3 4 5 6 7 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/make_style_builder.py View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/make_style_shorthands.py View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/scripts.gni View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 3 4 5 6 7 1 chunk +0 lines, -664 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSProperties.json5 View 1 2 3 4 5 6 7 1 chunk +2741 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/build/generate_supported_css.py View 1 2 3 4 5 6 7 1 chunk +11 lines, -19 lines 0 comments Download
A + third_party/WebKit/Source/devtools/scripts/build/json5_generator.py View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/scripts/gulp/gulpfile.js View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter.py View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer_unittest.py View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (21 generated)
ktyliu
Hi Sasha, Alan, Looks like we've agreed to use JSON5 format for our configuration files. ...
3 years, 11 months ago (2017-01-12 05:26:58 UTC) #5
sashab
LGTM from me, excellent comment in json5_generator.py. Before we land I'd like a review from ...
3 years, 11 months ago (2017-01-12 05:33:47 UTC) #7
ktyliu
Done. Thanks for the review and guidance in the project. Looks like test failed because ...
3 years, 11 months ago (2017-01-12 06:08:43 UTC) #13
dcheng
It doesn't seem like this really changes code style, so from that perspective, lgtm. Let ...
3 years, 11 months ago (2017-01-16 05:52:52 UTC) #16
ktyliu
Thanks, Daniel, for the review and suggestions. All done. Yes this doesn't change the generated ...
3 years, 11 months ago (2017-01-16 06:19:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2620883002/110001
3 years, 11 months ago (2017-01-16 21:53:44 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 21:58:38 UTC) #28
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://chromium.googlesource.com/chromium/src/+/4a9064a99588486772c9c2ec88e8...

Powered by Google App Engine
This is Rietveld 408576698