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

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

Issue 2315923002: Lazy Parse CSS (Closed)
Patch Set: s/->/. Created 4 years, 3 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/ElementRuleCollector.cpp
diff --git a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
index eef0b9dd260cad67c7e39eb60941a4a2782faf6f..0ff615a97617f371cb259b6efaaa5c59bc01c437 100644
--- a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
+++ b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
@@ -148,8 +148,7 @@ void ElementRuleCollector::collectMatchingRulesForList(const RuleDataListType* r
StyleRule* rule = ruleData.rule();
// If the rule has no properties to apply, then ignore it in the non-debug mode.
- const StylePropertySet& properties = rule->properties();
- if (properties.isEmpty() && !m_includeEmptyRules)
+ if (!rule->shouldConsiderForMatchingRules(m_includeEmptyRules))
continue;
SelectorChecker::MatchResult result;

Powered by Google App Engine
This is Rietveld 408576698