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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.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/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..438de8461268c55047e727fa1c386edee88d303a 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.h
@@ -6,8 +6,6 @@
#define CSSLazyPropertyParserImpl_h
#include "core/css/StylePropertySet.h"
-#include "core/css/parser/CSSParserTokenRange.h"
-#include "core/css/parser/CSSTokenizer.h"
#include "wtf/Vector.h"
namespace blink {
@@ -17,7 +15,7 @@ class CSSLazyParsingState;
// This class is responsible for lazily parsing a single CSS declaration list.
class CSSLazyPropertyParserImpl : public CSSLazyPropertyParser {
public:
- CSSLazyPropertyParserImpl(CSSParserTokenRange block, CSSLazyParsingState*);
+ CSSLazyPropertyParserImpl(size_t startOffset, CSSLazyParsingState*);
// CSSLazyPropertyParser:
StylePropertySet* parseProperties() override;
@@ -28,7 +26,7 @@ class CSSLazyPropertyParserImpl : public CSSLazyPropertyParser {
}
private:
- Vector<CSSParserToken> m_tokens;
+ size_t m_startOffset;
Member<CSSLazyParsingState> m_lazyState;
};

Powered by Google App Engine
This is Rietveld 408576698