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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Post-merge Created 5 years, 3 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: 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 28294b7d0e6d36234338cec0100d46b6e61e3d37..125f74f18fb0919543cb9e187d6c4ee8e618b031 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserValues.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserValues.h
@@ -28,6 +28,7 @@
#include "core/css/parser/CSSParserTokenRange.h"
#include "wtf/Allocator.h"
+
namespace blink {
class QualifiedName;
@@ -51,6 +52,7 @@ struct CSSParserValue {
UChar32 start;
UChar32 end;
} m_unicodeRange;
+ CSSVariableData* variableData;
};
enum {
Operator = 0x100000,
@@ -107,8 +109,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;
};
@@ -151,6 +155,6 @@ inline void CSSParserValue::setFromValueList(PassOwnPtr<CSSParserValueList> valu
isInt = false;
}
-}
+};
Timothy Loh 2015/09/30 02:09:28 unrelated
#endif

Powered by Google App Engine
This is Rietveld 408576698