DescriptionRemove all ordering requirements in CSSValueKeywords.in
Remove ordering requirement dependencies for all enums in
CSSValueKeywords.in by removing the 'minus' operations that
converted them and using explicit switch statements instead. This not
only makes the code much clearer and easier to understand, but is
future-proof and compatible with the upcoming change that makes all
ComputedStyleConstants enums enum classes (and hence no numerical
operations are possible).
Conversion operations were found using these search queries:
https://cs.chromium.org/search/?q=(%5B%5C%2B%5C-%5D%5Cs%2BCSSValue%5BA-Za-z0-9%5D%2B)%7C(CSSValue%5BA-Za-z0-9%5D%2B%5Cs%2B%5B%5C%2B%5C-%5D)&sq=package:chromium&type=cs
https://cs.chromium.org/search/?q=(((%3C%3D?)%7C(%3E%3D?))%5Cs%2BCSSValue%5BA-Za-z0-9%5D%2B)%7C(CSSValue%5BA-Za-z0-9%5D%2B%5Cs%2B((%3C%3D?)%7C(%3E%3D?)))&sq=package:chromium&type=cs
Also added some conversion functions independent of CSSPrimitiveValue,
which is part of a longer-term goal to generate them and remove
CSSPrimitiveValue from the equation.
Also, since ComputedStyleConstants will eventually be generated, the
verbosity of this patch is not a problem. :)
BUG=665272
Patch Set 1 #Patch Set 2 : Fixed other areas and added converter functions #Patch Set 3 : Fixed small compile errors #Patch Set 4 : Fixed extra areas pointed out by regex #Patch Set 5 : Rebase #Patch Set 6 : Rebase and removed more places #Patch Set 7 : Some mor efixes #Messages
Total messages: 40 (28 generated)
|