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

Issue 2614773007: Use switches for CSSPropertyMetadata::isDescriptorOnly. (Closed)

Created:
3 years, 11 months ago by ktyliu
Modified:
3 years, 11 months ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use switches for CSSPropertyMetadata::isDescriptorOnly. This allows CSSProperties.in to have unordered entries. Generated code is now: namespace blink { bool CSSPropertyMetadata::isDescriptorOnly(CSSPropertyID property) { switch(property) { case CSSPropertyInvalid: ASSERT_NOT_REACHED(); return false; case CSSPropertyFontDisplay: case CSSPropertyMinZoom: case CSSPropertyOrientation: case CSSPropertyUnicodeRange: case CSSPropertyMaxZoom: case CSSPropertyUserZoom: case CSSPropertySrc: return true; default: return false; } } BUG=677884 Review-Url: https://codereview.chromium.org/2614773007 Cr-Commit-Position: refs/heads/master@{#441894} Committed: https://chromium.googlesource.com/chromium/src/+/950a485a2b8a36beefe4bb7140274399390745c3

Patch Set 1 #

Patch Set 2 : remove typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -8 lines) Patch
M third_party/WebKit/Source/build/scripts/css_properties.py View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/make_css_property_metadata.py View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
ktyliu
Hi Bugs, Does this change look okay to you? If it's fine I can then ...
3 years, 11 months ago (2017-01-06 04:37:48 UTC) #4
ktyliu
Adding Sasha, as Bugs has already went on weekend adventure :)
3 years, 11 months ago (2017-01-06 05:08:09 UTC) #6
sashab
WOW this is awesome!! Thanks for putting the generated snippet in the CL description. Did ...
3 years, 11 months ago (2017-01-06 05:12:49 UTC) #7
sashab
+cc alancutter because oh my god how cool does this look alan!! D:
3 years, 11 months ago (2017-01-06 05:13:07 UTC) #8
alancutter (OOO until 2018)
On 2017/01/06 at 05:13:07, sashab wrote: > +cc alancutter because oh my god how cool ...
3 years, 11 months ago (2017-01-06 05:18:59 UTC) #9
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/2614773007/20001
3 years, 11 months ago (2017-01-06 06:33:36 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 06:38:06 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/950a485a2b8a36beefe4bb714027...

Powered by Google App Engine
This is Rietveld 408576698