| Index: third_party/WebKit/Source/core/css/parser/CSSParserValues.h
|
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserValues.h b/third_party/WebKit/Source/core/css/parser/CSSParserValues.h
|
| index 2b95061d862e54e4a9150860b3d5ee8e1440c81a..f3c95d6e8dd2addc9c92924d7ee9c65e53dabc20 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSParserValues.h
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSParserValues.h
|
| @@ -35,6 +35,7 @@ class QualifiedName;
|
| struct CSSParserFunction;
|
| struct CSSParserCalcFunction;
|
| class CSSParserValueList;
|
| +class CSSVariableData;
|
|
|
| struct CSSParserValue {
|
| DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
|
| @@ -51,6 +52,7 @@ struct CSSParserValue {
|
| UChar32 start;
|
| UChar32 end;
|
| } m_unicodeRange;
|
| + CSSVariableData* variableData;
|
| };
|
| enum {
|
| Operator = 0x100000,
|
| @@ -65,6 +67,7 @@ struct CSSParserValue {
|
| UnicodeRange = 0x100007,
|
| String = 0x100008,
|
| URI = 0x100009,
|
| + VariableReference = 0x100010,
|
| };
|
| int m_unit;
|
| CSSPrimitiveValue::UnitType unit() const { return static_cast<CSSPrimitiveValue::UnitType>(m_unit); }
|
| @@ -111,6 +114,9 @@ public:
|
| void destroyAndClear();
|
|
|
| private:
|
| + void checkForVariableReferencesOrDestroyAndClear(const CSSParserTokenRange& originalRange);
|
| + void consumeVariableValue(const CSSParserTokenRange&);
|
| +
|
| unsigned m_current;
|
| Vector<CSSParserValue, 4> m_values;
|
| };
|
|
|