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 371443003: Merge .in files for css/svg properties into a single file (Closed)

Created:
6 years, 5 months ago by Timothy Loh
Modified:
6 years, 5 months ago
CC:
blink-reviews, caseq+blink_chromium.org, aandrey+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, blink-reviews-css, devtools-reviews_chromium.org, ed+blinkwatch_opera.com, lushnikov+blink_chromium.org, yurys+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, darktears, sergeyv+blink_chromium.org, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@cascade
Project:
blink
Visibility:
Public.

Description

Merge .in files for css/svg properties into a single file This patch merges the various files for specifying css and svg properties into a single location, CSSProperties.in. These files are CSSPropertyNames.in, SVGCSSPropertyNames.in, CSSProperties.in and CSSShorthands.in. I've added documentation at the top of the merged .in file on what the various arguments mean. As a result, adding new properties is now slightly easier. Adding new code generators for properties is also much easier, for example a generator to replace the functions isInheritedProperty/etc. should be much easier to add now.

Patch Set 1 : #

Patch Set 2 : #

Total comments: 24

Patch Set 3 : rebase and tweak python style #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : clean up devtools py file #

Patch Set 7 : fix gn #

Patch Set 8 : up-to-date version of entire patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+653 lines, -1027 lines) Patch
A Source/build/scripts/css_properties.py View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download
M Source/build/scripts/make_css_property_names.py View 1 2 3 4 5 6 7 3 chunks +18 lines, -44 lines 0 comments Download
M Source/build/scripts/make_style_builder.py View 1 2 3 4 5 6 7 1 chunk +21 lines, -52 lines 0 comments Download
M Source/build/scripts/make_style_shorthands.py View 1 2 3 4 5 6 7 1 chunk +10 lines, -26 lines 0 comments Download
M Source/build/scripts/name_utilities.py View 1 chunk +0 lines, -9 lines 0 comments Download
M Source/build/scripts/scripts.gni View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 0 comments Download
M Source/build/scripts/scripts.gypi View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M Source/build/scripts/templates/StyleBuilder.cpp.tmpl View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 2 3 4 5 chunks +8 lines, -8 lines 0 comments Download
M Source/build/scripts/templates/StylePropertyShorthand.cpp.tmpl View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M Source/build/scripts/templates/StylePropertyShorthand.h.tmpl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +3 lines, -14 lines 0 comments Download
M Source/core/core_generated.gyp View 1 2 3 4 5 6 7 5 chunks +5 lines, -14 lines 0 comments Download
M Source/core/css/CSSProperties.in View 1 2 3 4 5 6 7 1 chunk +446 lines, -252 lines 0 comments Download
D Source/core/css/CSSPropertyNames.in View 1 2 3 4 5 6 7 1 chunk +0 lines, -425 lines 0 comments Download
D Source/core/css/CSSShorthands.in View 1 2 1 chunk +0 lines, -53 lines 0 comments Download
D Source/core/css/SVGCSSPropertyNames.in View 1 1 chunk +0 lines, -51 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M Source/devtools/BUILD.gn View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M Source/devtools/devtools.gyp View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M Source/devtools/scripts/generate_supported_css.py View 1 2 3 4 5 6 7 1 chunk +18 lines, -47 lines 0 comments Download
M Tools/Scripts/webkitpy/w3c/test_converter.py View 2 chunks +9 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Timothy Loh
(+nbarth since I'm touching a lot of python) To save me some future rebasing hassle, ...
6 years, 5 months ago (2014-07-04 04:59:53 UTC) #1
Nils Barth (inactive)
Python style/structure comments only; mostly nits. Most substantive point is that dict comprehensions need to ...
6 years, 5 months ago (2014-07-07 16:43:29 UTC) #2
eseidel
This change is clearly more than just merging two files. Can you either update the ...
6 years, 5 months ago (2014-07-07 17:12:45 UTC) #3
esprehn
On 2014/07/07 at 17:12:45, eseidel wrote: > This change is clearly more than just merging ...
6 years, 5 months ago (2014-07-07 17:19:47 UTC) #4
Timothy Loh
On 2014/07/07 17:19:47, esprehn wrote: > On 2014/07/07 at 17:12:45, eseidel wrote: > > This ...
6 years, 5 months ago (2014-07-08 00:47:35 UTC) #5
eseidel
Wonderful. My l-g-t-ming finger is standing ready to r+ any and all small patches!
6 years, 5 months ago (2014-07-08 00:59:49 UTC) #6
Timothy Loh
On 2014/07/08 00:47:35, Timothy Loh wrote: > On 2014/07/07 17:19:47, esprehn wrote: > > On ...
6 years, 5 months ago (2014-07-24 07:28:55 UTC) #7
Timothy Loh
On 2014/07/07 16:43:29, Nils Barth wrote: > Python style/structure comments only; mostly nits. > > ...
6 years, 5 months ago (2014-07-24 07:33:57 UTC) #8
Nils Barth (inactive)
6 years, 5 months ago (2014-07-24 14:15:56 UTC) #9
Message was sent while issue was closed.
On 2014/07/24 07:33:57, Timothy Loh wrote:
> I've done some of the suggested changes here, although I left out tweaking
style
> in nearby code to keep the size of this down.

No problem, that's understandable.

> I also left in the 80+ col lines, which seems OK as per the Blink style guide

n/p: 80+ col lines are ok (not banned), but if there's a convenient line break
opportunity it makes it a bit more legible (in Rietveld) esp., hence why I
requested.

> (also it makes no comment on single/double quotes)?

Neither's preferred, though consistency within a file is specified:
http://google-styleguide.googlecode.com/svn/trunk/pyguide.html?showone=String...
"""
Be consistent with your choice of string quote character within a file. Pick '
or " and stick with it. It is okay to use the other quote character on a string
to avoid the need to \ escape within the string. GPyLint enforces this.
...
Prefer """ for multi-line strings rather than '''.
"""

(Personally I like ' to avoid a shift, but I understand " esp. as consistency
with other languages.)

> The change is now broken into two changes (see above comment) and I haven't
> added you to the reviewers list for these since you're no longer working on
> Chrome, but feel free to leave comments if you want to.

Thanks Tim!
(I doubt I'd have further comments regardless ;)

Powered by Google App Engine
This is Rietveld 408576698