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

Issue 2904483003: Replace "field_type_path" with "include_paths" in CSSProperties.json5. (Closed)

Created:
3 years, 7 months ago by shend
Modified:
3 years, 7 months ago
Reviewers:
meade_UTC10, nainar
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace "field_type_path" with "include_paths" in CSSProperties.json5. In CSSProperties.json5, to deal with type_names that are defined in other files, we use the "field_type_path" parameter. For example, if we wanted to use "Length" as the type_name, we can specify "field_type_path" as "platform/Length" and the generator will automatically include "platform/Length.h". We would also deduce that the type_name is Length. However, this does not cater for type_names like "Vector<String>", where multiple files need to be included. This patch generalises "field_type_path" to "include_paths", which is simply a list of files containing definitions for the types in type_name. Since "include_paths" can contain multiple files, we can no longer deduce the type_name, so we have to explicitly specify the type_name. BUG=628043 Review-Url: https://codereview.chromium.org/2904483003 Cr-Commit-Position: refs/heads/master@{#474928} Committed: https://chromium.googlesource.com/chromium/src/+/e076f00974fd76585a9a922d3674144d577271c5

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Total comments: 1

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -89 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 3 3 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/make_css_value_id_mappings.py View 1 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.json5 View 1 2 3 51 chunks +104 lines, -57 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5 View 1 2 3 13 chunks +31 lines, -16 lines 0 comments Download

Messages

Total messages: 28 (21 generated)
shend
Hi Naina, PTAL
3 years, 7 months ago (2017-05-24 23:49:57 UTC) #11
nainar
lgtm
3 years, 7 months ago (2017-05-25 00:41:38 UTC) #12
shend
Hi Eddy, PTAL
3 years, 7 months ago (2017-05-25 08:14:52 UTC) #16
meade_UTC10
lgtm with optional nit https://codereview.chromium.org/2904483003/diff/40001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): https://codereview.chromium.org/2904483003/diff/40001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode171 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:171: return list(sorted(set(_flatten_list(property_['include_paths'] for property_ in ...
3 years, 7 months ago (2017-05-26 01:20:19 UTC) #17
shend
On 2017/05/26 at 01:20:19, meade wrote: > lgtm with optional nit > > https://codereview.chromium.org/2904483003/diff/40001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py > ...
3 years, 7 months ago (2017-05-26 01:31:37 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/2904483003/60001
3 years, 7 months ago (2017-05-26 05:37:20 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 05:42:28 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e076f00974fd76585a9a922d3674...

Powered by Google App Engine
This is Rietveld 408576698