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

Unified Diff: Source/core/css/parser/CSSTokenizer.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/CSSTokenizer.h
diff --git a/Source/core/css/parser/CSSTokenizer.h b/Source/core/css/parser/CSSTokenizer.h
index 97349c646d55cf85b6de79c87d18d2bd7de70965..7f71afdf0c2a4250c8cebebd8a8bc6dcfc9949d0 100644
--- a/Source/core/css/parser/CSSTokenizer.h
+++ b/Source/core/css/parser/CSSTokenizer.h
@@ -24,6 +24,7 @@ class CORE_EXPORT CSSTokenizer {
WTF_MAKE_FAST_ALLOCATED(CSSTokenizer);
public:
class CORE_EXPORT Scope {
+ WTF_MAKE_FAST_ALLOCATED(Scope);
public:
Scope(const String&);
Scope(const String&, CSSParserObserverWrapper&); // For the inspector
@@ -31,16 +32,18 @@ public:
CSSParserTokenRange tokenRange();
unsigned tokenCount();
- private:
+ String string() const { return m_string; }
Timothy Loh 2015/07/23 08:11:47 not used?
+ public:
void storeString(const String& string) { m_stringPool.append(string); }
Vector<CSSParserToken> m_tokens;
// We only allocate strings when escapes are used.
Vector<String> m_stringPool;
String m_string;
+ bool m_hasVariableReference;
Timothy Loh 2015/07/23 08:11:47 Not used?
+
friend class CSSTokenizer;
};
-
private:
CSSTokenizer(CSSTokenizerInputStream&, Scope&);
@@ -58,12 +61,13 @@ private:
CSSParserToken consumeUrlToken();
void consumeBadUrlRemnants();
- void consumeUntilNonWhitespace();
+ unsigned consumeUntilNonWhitespace();
void consumeSingleWhitespaceIfNext();
void consumeUntilCommentEndFound();
bool consumeIfNext(UChar);
CSSParserString consumeName();
+ CSSParserString lastConsumedCharacter();
UChar32 consumeEscape();
bool nextTwoCharsAreValidEscape();
@@ -110,6 +114,8 @@ private:
CSSParserString registerString(const String&);
+ friend class Scope;
Timothy Loh 2015/07/23 08:11:47 not used?
+
CSSTokenizerInputStream& m_input;
Scope& m_scope;
};

Powered by Google App Engine
This is Rietveld 408576698