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 2315923002: Lazy Parse CSS (Closed)
Patch Set: esprehn review Created 4 years, 2 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
new file mode 100644
index 0000000000000000000000000000000000000000..1a190199c5955e0529300fe482f9923a154c26ad
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CSSLazyPropertyParserImpl_h
+#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 {
+
+class CSSLazyParsingState;
+
+// This class is responsible for lazily parsing a single CSS declaration list.
+class CSSLazyPropertyParserImpl : public CSSLazyPropertyParser {
+ public:
+ CSSLazyPropertyParserImpl(CSSParserTokenRange block, CSSLazyParsingState*);
+
+ // CSSLazyPropertyParser:
+ StylePropertySet* parseProperties() override;
+
+ DEFINE_INLINE_TRACE() {
+ visitor->trace(m_lazyState);
+ CSSLazyPropertyParser::trace(visitor);
+ }
+
+ private:
+ Vector<CSSParserToken> m_tokens;
+ Member<CSSLazyParsingState> m_lazyState;
+};
+
+} // namespace blink
+
+#endif // CSSLazyPropertyParserImpl_h

Powered by Google App Engine
This is Rietveld 408576698