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

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

Issue 2503683003: [WIP] Streaming CSS parser (Closed)
Patch Set: rebase Created 3 years, 11 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/CSSSelectorParser.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.h b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.h
index 8c9c3576c5e5a427f1bf2e558605b2617ce8e325..e784ee53edd1924da7b913403310579a74b2376f 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.h
@@ -13,6 +13,8 @@
namespace blink {
class CSSParserContext;
+class CSSParserObserver;
+class CSSParserTokenStream;
class CSSSelectorList;
class StyleSheetContents;
@@ -26,6 +28,13 @@ class CORE_EXPORT CSSSelectorParser {
const CSSParserContext&,
StyleSheetContents*);
+ // Stops at { or EOF
+ static CSSSelectorList consumeSelector(CSSParserTokenStream&,
+ const CSSParserContext&,
+ StyleSheetContents*,
+ size_t startOffset,
+ CSSParserObserver*);
+
static bool consumeANPlusB(CSSParserTokenRange&, std::pair<int, int>&);
private:
@@ -33,6 +42,10 @@ class CORE_EXPORT CSSSelectorParser {
// These will all consume trailing comments if successful
+ CSSSelectorList consumeComplexSelectorList(CSSParserTokenStream&,
+ size_t startOffset,
+ CSSParserObserver*);
+
CSSSelectorList consumeComplexSelectorList(CSSParserTokenRange&);
CSSSelectorList consumeCompoundSelectorList(CSSParserTokenRange&);

Powered by Google App Engine
This is Rietveld 408576698