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

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

Issue 962093002: CSS Tokenizer: Add an on-stack tokenizer scope (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/css/parser/CSSSelectorParserTest.cpp ('k') | Source/core/css/parser/CSSTokenizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSTokenizer.h
diff --git a/Source/core/css/parser/CSSTokenizer.h b/Source/core/css/parser/CSSTokenizer.h
index 9746bfb21dcd420eab31d41871642239d1d1cecd..7e77542988298a74f83ee30b315f7d674b18ff6e 100644
--- a/Source/core/css/parser/CSSTokenizer.h
+++ b/Source/core/css/parser/CSSTokenizer.h
@@ -14,12 +14,21 @@
namespace blink {
class CSSTokenizerInputStream;
+class CSSParserTokenRange;
class CSSTokenizer {
WTF_MAKE_NONCOPYABLE(CSSTokenizer);
WTF_MAKE_FAST_ALLOCATED;
public:
- static void tokenize(String, Vector<CSSParserToken>&);
+ class Scope {
+ public:
+ Scope(const String&);
+ CSSParserTokenRange tokenRange();
+
+ private:
+ Vector<CSSParserToken> m_tokens;
+ };
+
private:
CSSTokenizer(CSSTokenizerInputStream&);
« no previous file with comments | « Source/core/css/parser/CSSSelectorParserTest.cpp ('k') | Source/core/css/parser/CSSTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698