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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToT-ed again... Created 5 years, 5 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/CSSParserImpl.h
diff --git a/Source/core/css/parser/CSSParserImpl.h b/Source/core/css/parser/CSSParserImpl.h
index 94e8e8229df803fdd9b70e97a634e12d989b8307..f2fa196c82d5d19a618c97677bec88a8686b3200 100644
--- a/Source/core/css/parser/CSSParserImpl.h
+++ b/Source/core/css/parser/CSSParserImpl.h
@@ -10,6 +10,7 @@
#include "core/css/CSSPropertySourceData.h"
#include "core/css/parser/CSSParserMode.h"
#include "core/css/parser/CSSParserTokenRange.h"
+#include "core/css/parser/CSSTokenizer.h"
#include "platform/heap/Handle.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
@@ -38,7 +39,7 @@ class MutableStylePropertySet;
class CSSParserImpl {
STACK_ALLOCATED();
public:
- CSSParserImpl(const CSSParserContext&, StyleSheetContents* = nullptr);
+ CSSParserImpl(const CSSParserContext&, const String&, StyleSheetContents* = nullptr);
enum AllowedRulesType {
// As per css-syntax, css-cascade and css-namespaces, @charset rules
@@ -98,6 +99,7 @@ private:
void consumeDeclarationList(CSSParserTokenRange, StyleRule::Type);
void consumeDeclaration(CSSParserTokenRange, StyleRule::Type);
void consumeDeclarationValue(CSSParserTokenRange, CSSPropertyID, bool important, StyleRule::Type);
+ void consumeVariableDeclarationValue(CSSParserTokenRange, const AtomicString& variableName);
static PassOwnPtr<Vector<double>> consumeKeyframeKeyList(CSSParserTokenRange);
@@ -111,6 +113,9 @@ private:
// For the inspector
CSSParserObserverWrapper* m_observerWrapper;
+
+ const String& m_baseString;
+ AtomicString m_variableName;
Timothy Loh 2015/07/23 08:11:47 unused?
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698