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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.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/CSSLazyParsingState.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h b/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
index 80c846f6c4beb2837ba81f43402eebb2eb9ec14d..69cb15fb4bafe30119dd6d97cca923a42fcae749 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
@@ -14,7 +14,6 @@
namespace blink {
class CSSLazyPropertyParserImpl;
-class CSSParserTokenRange;
// This class helps lazy parsing by retaining necessary state. It should not
// outlive the StyleSheetContents that initiated the parse, as it retains a raw
@@ -23,19 +22,18 @@ class CSSLazyParsingState
: public GarbageCollectedFinalized<CSSLazyParsingState> {
public:
CSSLazyParsingState(const CSSParserContext&,
- Vector<String> escapedStrings,
const String& sheetText,
StyleSheetContents*);
// Helper method used to bump m_totalStyleRules.
- CSSLazyPropertyParserImpl* createLazyParser(const CSSParserTokenRange& block);
+ CSSLazyPropertyParserImpl* createLazyParser(size_t blockOffset);
const CSSParserContext& context();
+ const String& sheetText() { return m_sheetText; }
void countRuleParsed();
- bool shouldLazilyParseProperties(const CSSSelectorList&,
- const CSSParserTokenRange& block) const;
+ bool shouldLazilyParseProperties(const CSSSelectorList&) const;
DECLARE_TRACE();
@@ -58,7 +56,6 @@ class CSSLazyParsingState
void recordUsageMetrics();
CSSParserContext m_context;
- Vector<String> m_escapedStrings;
// Also referenced on the css resource.
String m_sheetText;

Powered by Google App Engine
This is Rietveld 408576698