Move hardcoded extra fields to its own JSON5 file

Desktop / Chromium - shend [chromium.org] - 20 April 2017 19:01 EDT

For extra fields in ComputedStyle, we have been hardcoding their
values in the generator script. However, this is ugly and not sustainable. This patch moves them into its own JSON file.

This patch does not change generated code.

BUG=628043

Review-Url: https://codereview.chromium.org/2788353002 Cr-Commit-Position: refs/heads/master@{#466178}

4187e7d Move hardcoded extra fields to its own JSON5 file.
.../build/scripts/make_computed_style_base.py | 87 ++---------
third_party/WebKit/Source/core/BUILD.gn | 1 +
.../Source/core/css/ComputedStyleExtraFields.json5 | 168 +++++++++++++++++++++
3 files changed, 180 insertions(+), 76 deletions(-)

Upstream: git.chromium.org


  • Share