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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToTed Created 5 years, 4 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
Index: Source/core/css/parser/CSSParserValues.h
diff --git a/Source/core/css/parser/CSSParserValues.h b/Source/core/css/parser/CSSParserValues.h
index 080be28bd897872e6acd213504be10c34cfb1242..808d9336487bbd35180e23b36d16a5e8a64c1ac9 100644
--- a/Source/core/css/parser/CSSParserValues.h
+++ b/Source/core/css/parser/CSSParserValues.h
@@ -28,6 +28,7 @@
#include "core/css/parser/CSSParserString.h"
#include "core/css/parser/CSSParserTokenRange.h"
+
namespace blink {
class QualifiedName;
@@ -50,6 +51,7 @@ struct CSSParserValue {
UChar32 start;
UChar32 end;
} m_unicodeRange;
+ CSSVariableData* variableData;
};
enum {
Operator = 0x100000,
@@ -106,8 +108,10 @@ public:
void clearAndLeakValues() { m_values.clear(); m_current = 0;}
void destroyAndClear();
-
private:
+ void checkForVariableReferencesOrDestroyAndClear(const CSSParserTokenRange& originalRange);
+ void consumeVariableValue(const CSSParserTokenRange&);
+
unsigned m_current;
Vector<CSSParserValue, 4> m_values;
};
@@ -206,6 +210,6 @@ inline void CSSParserValue::setFromValueList(PassOwnPtr<CSSParserValueList> valu
isInt = false;
}
-}
+};
#endif

Powered by Google App Engine
This is Rietveld 408576698