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

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

Issue 2282303002: [test] lazily parse css style rules
Patch Set: use string pool Created 4 years, 4 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 0bcd5153417d9830ee91dc5970255cdc3d5f1f2f..02155abcfd3b3cd46947a277c2ddba9e33ee6fec 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h
@@ -72,8 +72,11 @@ public:
bool supportsDeclaration(CSSParserTokenRange&);
static void parseDeclarationListForInspector(const String&, const CSSParserContext&, CSSParserObserver&);
+ static ImmutableStylePropertySet* parseDeclarationListForLazyStyle(CSSParserTokenRange, const CSSParserContext&);
static void parseStyleSheetForInspector(const String&, const CSSParserContext&, StyleSheetContents*, CSSParserObserver&);
+ void enableLazyParsing() { m_shouldUseLazyParsing = true; }
+
private:
enum RuleListType {
TopLevelRuleList,
@@ -120,6 +123,9 @@ private:
// For the inspector
CSSParserObserverWrapper* m_observerWrapper;
+
+ // Right now, just enable lazy parsing when we parse a whole sheet.
+ bool m_shouldUseLazyParsing = false;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.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