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

Issue 2697953004: Add support for generating external types in ComputedStyleBase. (Closed)

Created:
3 years, 10 months ago by shend
Modified:
3 years, 8 months ago
Reviewers:
meade_UTC10
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

Add support for generating external types in ComputedStyleBase. Many members in ComputedStyle are platform types like Length or LengthBox. We currently can't generate them because they cannot be bitfields. This patch does several things: 1) Generate different code based on whether a field is a bitfield or not. This allows us to store external types without packing. 2) Add a new field template 'external' which creates getter/setters that return/accept references and do not do any static_casts. This allows us to expose external types efficiently. 3) Change "initial-keyword" to "default-value" in CSSProperties.json5 to make keyword fields consistent with external fields. BUG=628043 Review-Url: https://codereview.chromium.org/2697953004 Cr-Commit-Position: refs/heads/master@{#460958} Committed: https://chromium.googlesource.com/chromium/src/+/73670040884ced3d736cde3c452a1fab82e68f70

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Address comments #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : remove unused macro #

Messages

Total messages: 35 (29 generated)
shend
Hi Eddy, can you please take a preliminary look at this?
3 years, 10 months ago (2017-02-16 06:50:44 UTC) #4
meade_UTC10
lgtm I think this is looking pretty good already! I only had a few minor ...
3 years, 10 months ago (2017-02-17 06:56:05 UTC) #7
shend
https://codereview.chromium.org/2697953004/diff/20001/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/2697953004/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode68 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:68: # pylint: disable=no-member On 2017/02/17 at 06:56:05, Eddy wrote: ...
3 years, 10 months ago (2017-02-19 23:10:17 UTC) #8
meade_UTC10
This is still lgtm btw, if you were waiting for something from me?
3 years, 9 months ago (2017-03-01 06:40:19 UTC) #10
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/2697953004/120001
3 years, 8 months ago (2017-03-30 21:50:29 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 00:48:09 UTC) #35
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/73670040884ced3d736cde3c452a...

Powered by Google App Engine
This is Rietveld 408576698