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

Unified Diff: Source/core/css/CSSParserValues.h

Issue 16339006: Make sure to use CSSValueID and CSSPropertyID rather than integers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/CSSPrimitiveValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParserValues.h
diff --git a/Source/core/css/CSSParserValues.h b/Source/core/css/CSSParserValues.h
index 46c0c3d19bd9635a6cb7af7053d83f6123e4b24c..7d90ef424002e983e2c23530c1424412a161c898 100644
--- a/Source/core/css/CSSParserValues.h
+++ b/Source/core/css/CSSParserValues.h
@@ -21,11 +21,12 @@
#ifndef CSSParserValues_h
#define CSSParserValues_h
+#include "CSSValueKeywords.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSSelector.h"
#include "core/css/CSSValueList.h"
-#include <wtf/text/AtomicString.h>
-#include <wtf/text/WTFString.h>
+#include "wtf/text/AtomicString.h"
+#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -126,7 +127,7 @@ struct CSSParserString {
struct CSSParserFunction;
struct CSSParserValue {
- int id;
+ CSSValueID id;
bool isInt;
union {
double fValue;
@@ -239,7 +240,7 @@ inline bool CSSParserSelector::hasShadowPseudo() const
inline void CSSParserValue::setFromNumber(double value, int unit)
{
- id = 0;
+ id = CSSValueInvalid;
isInt = false;
fValue = value;
this->unit = unit;
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/CSSPrimitiveValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698