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

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

Issue 2397473005: [test-not-for-commit] Strict Lazy Parsing (Closed)
Patch Set: CL for src perf tryjob to run blink_style.top_25 benchmark on all-android platform(s) 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
« no previous file with comments | « no previous file | tools/run-perf-test.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b2d57673d0ddc37c8af0cb2bcc3343c4a3ddecf1..40c2896c6a9d14a72a56e374145cbafd385d7c3d 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
@@ -780,10 +780,12 @@ StyleRule* CSSParserImpl::consumeStyleRule(CSSParserTokenRange prelude,
} else if (m_deferPropertyParsing &&
shouldLazilyParseProperties(selectorList)) {
DCHECK(m_styleSheet);
- return StyleRule::createLazy(
+ auto s = StyleRule::createLazy(
std::move(selectorList),
createDeferredPropertiesClosure(block, m_styleSheet->parserContext(),
m_context.useCounter()));
+ s->properties();
+ return s;
}
consumeDeclarationList(block, StyleRule::Style);
return StyleRule::create(
« no previous file with comments | « no previous file | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698