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/CSSParserImpl.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/CSSParserImpl.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h
index 13d99b03f8a4ae5796bd928193bed069250137ea..fca5ec2a94cf27f419101aa9cb619e6bbbee3650 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h
@@ -17,6 +17,7 @@
namespace blink {
+class CSSLazyParsingState;
class CSSParserObserver;
class CSSParserObserverWrapper;
class StyleRule;
@@ -80,7 +81,8 @@ class CSSParserImpl {
AllowedRulesType);
static void parseStyleSheet(const String&,
const CSSParserContext&,
- StyleSheetContents*);
+ StyleSheetContents*,
+ bool deferPropertyParsing = false);
static CSSSelectorList parsePageSelector(CSSParserTokenRange,
StyleSheetContents*);
@@ -98,6 +100,10 @@ class CSSParserImpl {
StyleSheetContents*,
CSSParserObserver&);
+ static StylePropertySet* parseDeclarationListForLazyStyle(
+ CSSParserTokenRange block,
+ const CSSParserContext&);
+
private:
enum RuleListType { TopLevelRuleList, RegularRuleList, KeyframesRuleList };
@@ -156,6 +162,8 @@ class CSSParserImpl {
// For the inspector
CSSParserObserverWrapper* m_observerWrapper;
+
+ Member<CSSLazyParsingState> m_lazyState;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSParser.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698