DescriptionSupport generating enums shared by multiple ComputedStyle fields.
When we generate fields in ComputedStyleBase, we generate both a new
enum type and a corresponding member variable with that type. So every
generated enum can only have one corresponding member. Unfortunately,
there are some enums (like EOverflow) that are shared by several
members.
The current solution is to explicitly specify the type_name flag, which
allows multiple fields to have the same enum type name. However, the
script currently will break if there's two fields with the same name
but different keywords.
This patch prevents such name conflicts by checking that enums with the
same name have the exact same keywords.
This is prework for generating the overflow-x and overflow-y fields
in ComputedStyle.
BUG=628043
Review-Url: https://codereview.chromium.org/2669973002
Cr-Commit-Position: refs/heads/master@{#448926}
Committed: https://chromium.googlesource.com/chromium/src/+/b66eb61f525f914b1b478b56e7b4792db7b4c4e5
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address comments #
Dependent Patchsets: Messages
Total messages: 14 (7 generated)
|