Index: Source/core/css/ElementRuleCollector.cpp |
diff --git a/Source/core/css/ElementRuleCollector.cpp b/Source/core/css/ElementRuleCollector.cpp |
index cfc7ce3cbe49c0e5ab2832c531f4a17ab30c8148..6675cdce6afe0e97480559f4f9dfe2e77b8200f1 100644 |
--- a/Source/core/css/ElementRuleCollector.cpp |
+++ b/Source/core/css/ElementRuleCollector.cpp |
@@ -81,7 +81,7 @@ PassRefPtrWillBeRawPtr<CSSRuleList> ElementRuleCollector::matchedCSSRuleList() |
inline void ElementRuleCollector::addMatchedRule(const RuleData* rule, unsigned specificity, CascadeScope cascadeScope, CascadeOrder cascadeOrder, unsigned styleSheetIndex, const CSSStyleSheet* parentStyleSheet) |
{ |
if (!m_matchedRules) |
- m_matchedRules = adoptPtr(new Vector<MatchedRule, 32>); |
+ m_matchedRules = adoptPtrWillBeNoop(new WillBeHeapVector<MatchedRule, 32>); |
m_matchedRules->append(MatchedRule(rule, specificity, cascadeScope, cascadeOrder, styleSheetIndex, parentStyleSheet)); |
} |
@@ -234,7 +234,7 @@ void ElementRuleCollector::sortAndTransferMatchedRules() |
sortMatchedRules(); |
- Vector<MatchedRule, 32>& matchedRules = *m_matchedRules; |
+ WillBeHeapVector<MatchedRule, 32>& matchedRules = *m_matchedRules; |
if (m_mode == SelectorChecker::CollectingStyleRules) { |
for (unsigned i = 0; i < matchedRules.size(); ++i) |
ensureStyleRuleList()->m_list.append(matchedRules[i].ruleData()->rule()); |