Index: Source/core/css/ElementRuleCollector.cpp |
diff --git a/Source/core/css/ElementRuleCollector.cpp b/Source/core/css/ElementRuleCollector.cpp |
index 745b3c914ae69ca96bb91f89f6b996d09fc450ab..e6f103d0e811e8693fe64b2ead628f871259d340 100644 |
--- a/Source/core/css/ElementRuleCollector.cpp |
+++ b/Source/core/css/ElementRuleCollector.cpp |
@@ -253,7 +253,7 @@ void ElementRuleCollector::sortAndTransferMatchedRules() |
const RuleData* ruleData = matchedRules[i].ruleData(); |
if (m_style && ruleData->containsUncommonAttributeSelector()) |
m_style->setUnique(); |
- m_result.addMatchedProperties(ruleData->rule()->properties(), ruleData->rule(), ruleData->linkMatchType(), ruleData->propertyWhitelistType(m_matchingUARules)); |
+ m_result.addMatchedProperties(&ruleData->rule()->properties(), ruleData->rule(), ruleData->linkMatchType(), ruleData->propertyWhitelistType(m_matchingUARules)); |
} |
} |
@@ -307,8 +307,8 @@ void ElementRuleCollector::collectRuleIfMatches(const RuleData& ruleData, Select |
SelectorChecker::MatchResult result; |
if (ruleMatches(ruleData, matchRequest.scope, behaviorAtBoundary, &result)) { |
// If the rule has no properties to apply, then ignore it in the non-debug mode. |
- const StylePropertySet* properties = rule->properties(); |
- if (!properties || (properties->isEmpty() && !matchRequest.includeEmptyRules)) |
+ const StylePropertySet& properties = rule->properties(); |
+ if (properties.isEmpty() && !matchRequest.includeEmptyRules) |
return; |
// FIXME: Exposing the non-standard getMatchedCSSRules API to web is the only reason this is needed. |
if (m_sameOriginOnly && !ruleData.hasDocumentSecurityOrigin()) |