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

Issue 2722503002: [CSS Typed OM] Specify and check separators for repeated properties (Closed)

Created:
3 years, 9 months ago by meade_UTC10
Modified:
3 years, 9 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, Eric Willigers, rwlbuis, shans, shend
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CSS Typed OM] Specify and check separators for repeated properties Previously, we just assumed everything was space separated, which is obviously wrong. This CL lets us specify a separator for a property in CSSProperties.json5 (replacing the boolian is_repeated), which is used in a new function CSSPropertyMetadata::repetitionSeparator(propertyID). Diff in generated CSSPropertyMetadata.cpp: https://gist.github.com/wilddamon/e17ee686869b2cd33da6de769cec7103/revisions BUG=545318 Review-Url: https://codereview.chromium.org/2722503002 Cr-Commit-Position: refs/heads/master@{#454102} Committed: https://chromium.googlesource.com/chromium/src/+/89f793921f307ce8de9a1f0e4a25902e2a77140b

Patch Set 1 #

Patch Set 2 : Add "/" as a valid separator in CSSProperties.json5 #

Total comments: 2

Patch Set 3 : Don't generate function #

Messages

Total messages: 26 (12 generated)
meade_UTC10
3 years, 9 months ago (2017-02-27 08:05:08 UTC) #2
rjwright
On 2017/02/27 08:05:08, Eddy wrote: LGTM
3 years, 9 months ago (2017-02-28 05:22:47 UTC) #3
meade_UTC10
3 years, 9 months ago (2017-02-28 22:12:33 UTC) #5
meade_UTC10
Hey Sasha, Could you please sanity check the usage of the generators for this? Thanks! ...
3 years, 9 months ago (2017-02-28 23:02:41 UTC) #7
sashab
Can you make a gist of the resultant 'CSSPropertyMetadata.cpp' and add it to the CL ...
3 years, 9 months ago (2017-02-28 23:20:49 UTC) #8
sashab
3 years, 9 months ago (2017-02-28 23:20:54 UTC) #9
meade_UTC10
Gist of generated code with diff: https://gist.github.com/wilddamon/4413030b29264cefa344aaa7b3530abd/revisions https://codereview.chromium.org/2722503002/diff/20001/third_party/WebKit/Source/build/scripts/make_css_property_metadata.py File third_party/WebKit/Source/build/scripts/make_css_property_metadata.py (right): https://codereview.chromium.org/2722503002/diff/20001/third_party/WebKit/Source/build/scripts/make_css_property_metadata.py#newcode31 third_party/WebKit/Source/build/scripts/make_css_property_metadata.py:31: ('separator', 'propertyIsRepeated') ...
3 years, 9 months ago (2017-03-01 06:20:28 UTC) #10
meade_UTC10
Updated to not generate propertyIsRepeated any more; there is still a function with that name, ...
3 years, 9 months ago (2017-03-01 06:27:34 UTC) #11
sashab
Ahh much better!! I prefer this a lot :D And thanks for the great gist ...
3 years, 9 months ago (2017-03-01 23:04:15 UTC) #16
sashab
Oh and LGTM of course :)
3 years, 9 months ago (2017-03-01 23:04:24 UTC) #17
sashab
+shend fyi for the gist link, and attitude towards generator code (see previous comments)
3 years, 9 months ago (2017-03-01 23:05:03 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/2722503002/40001
3 years, 9 months ago (2017-03-01 23:44:20 UTC) #22
meade_UTC10
Thanks Sasha! To get a diff like that in a gist, you make a gist ...
3 years, 9 months ago (2017-03-01 23:45:53 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 23:52:09 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/89f793921f307ce8de9a1f0e4a25...

Powered by Google App Engine
This is Rietveld 408576698