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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.cpp

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/StyleSheetContents.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
index 9ad890082c3cc4b20fc52366b5317ba5fd16ad06..6a11c7fe0e7ad9ad138dafbf598e5ed37acb30d4 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -341,8 +341,7 @@ void StyleSheetContents::parseAuthorStyleSheet(const CSSStyleSheetResource* cach
m_sourceMapURL = response.httpHeaderField(HTTPNames::X_SourceMap);
}
- CSSParserContext context(parserContext(), UseCounter::getFrom(this));
- CSSParser::parseSheet(context, this, sheetText);
+ CSSParser::parseSheet(parserContext(), this, sheetText);
}
void StyleSheetContents::parseString(const String& sheetText)
@@ -352,8 +351,7 @@ void StyleSheetContents::parseString(const String& sheetText)
void StyleSheetContents::parseStringAtPosition(const String& sheetText, const TextPosition& startPosition)
{
- CSSParserContext context(parserContext(), UseCounter::getFrom(this));
- CSSParser::parseSheet(context, this, sheetText);
+ CSSParser::parseSheet(parserContext(), this, sheetText);
}
bool StyleSheetContents::isLoading() const
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.h ('k') | third_party/WebKit/Source/core/css/parser/CSSParserImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698