DescriptionAdd 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)
|