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

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

Issue 2533093002: [LazyParseCSS] Add histogram for rule usage % (Closed)
Patch Set: rebase Created 4 years 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.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
index b87180927300e20a5e04c826bc74dcce8fc98ef4..8140d02235f04667b22f7652a4f904c7be29cfac 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
@@ -801,9 +801,8 @@ StyleRule* CSSParserImpl::consumeStyleRule(CSSParserTokenRange prelude,
} else if (m_lazyState &&
m_lazyState->shouldLazilyParseProperties(selectorList, block)) {
DCHECK(m_styleSheet);
- return StyleRule::createLazy(
- std::move(selectorList),
- new CSSLazyPropertyParserImpl(block, m_lazyState));
+ return StyleRule::createLazy(std::move(selectorList),
+ m_lazyState->createLazyParser(block));
}
consumeDeclarationList(block, StyleRule::Style);
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698