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

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

Issue 2711853003: [LazyParseCSS] WIP Implement token discarding
Patch Set: lookup in escape string pool Created 3 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
Index: third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.h b/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.h
index 1a190199c5955e0529300fe482f9923a154c26ad..c150cbf8103661a973470b14dbf818076b5a55a1 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.h
@@ -18,17 +18,24 @@ class CSSLazyParsingState;
class CSSLazyPropertyParserImpl : public CSSLazyPropertyParser {
public:
CSSLazyPropertyParserImpl(CSSParserTokenRange block, CSSLazyParsingState*);
+ ~CSSLazyPropertyParserImpl();
// CSSLazyPropertyParser:
StylePropertySet* parseProperties() override;
+ void discardTokensIfPossible();
+
DEFINE_INLINE_TRACE() {
visitor->trace(m_lazyState);
CSSLazyPropertyParser::trace(visitor);
}
private:
+ StylePropertySet* retokenizeAndParseProperties();
+
+ // TODO(csharrison): Can this be packed a bit tighter?
Vector<CSSParserToken> m_tokens;
+ StringView m_tokenView;
Member<CSSLazyParsingState> m_lazyState;
};

Powered by Google App Engine
This is Rietveld 408576698