| 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
|
|
|