CSSValue: reorder ClassType enum to allow faster comparisons, add COMPILE_ASSERT...
authormacpherson@chromium.org <macpherson@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Nov 2011 06:03:59 +0000 (06:03 +0000)
committermacpherson@chromium.org <macpherson@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Nov 2011 06:03:59 +0000 (06:03 +0000)
commitf618d49b9b6c9aeb803fc9f7a51a36121cf3157d
tree3b2305f78eb34ad682dc9a7d5d623f845bf30636
parent56e753a001ec6af6d413c8996a56fe564e2162ad
CSSValue: reorder ClassType enum to allow faster comparisons, add COMPILE_ASSERT on class size.
https://bugs.webkit.org/show_bug.cgi?id=72924

Reviewed by Andreas Kling.

Note that the change from unsigned to unsigned char is to improve bit packing when using MSVC.

Covered by existing CSS tests.

* css/CSSValue.h:
(WebCore::CSSValue::isPrimitiveValue):
(WebCore::CSSValue::isValueList):
(WebCore::CSSValue::isImageGeneratorValue):
(WebCore::CSSValue::isTimingFunctionValue):
(WebCore::CSSValue::CSSValue):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSValue.cpp
Source/WebCore/css/CSSValue.h