Index: Source/core/css/ElementRuleCollector.cpp |
diff --git a/Source/core/css/ElementRuleCollector.cpp b/Source/core/css/ElementRuleCollector.cpp |
index ba4f31c22f3ff7dc62378ea35645d5f02cf6787b..1168c87613d667ce06de7e77f90bc0cb1ea33929 100644 |
--- a/Source/core/css/ElementRuleCollector.cpp |
+++ b/Source/core/css/ElementRuleCollector.cpp |
@@ -86,9 +86,15 @@ void ElementRuleCollector::clearMatchedRules() |
inline StyleRuleList* ElementRuleCollector::ensureStyleRuleList() |
{ |
+#if ENABLE(OILPAN) |
+ if (!m_styleRuleList) |
+ m_styleRuleList = new StyleRuleList(); |
+ return m_styleRuleList; |
+#else |
if (!m_styleRuleList) |
m_styleRuleList = StyleRuleList::create(); |
return m_styleRuleList.get(); |
+#endif |
} |
inline StaticCSSRuleList* ElementRuleCollector::ensureRuleList() |
@@ -272,7 +278,7 @@ void ElementRuleCollector::sortAndTransferMatchedRules() |
if (m_mode == SelectorChecker::CollectingStyleRules) { |
for (unsigned i = 0; i < m_matchedRules.size(); ++i) |
- ensureStyleRuleList()->m_list.append(m_matchedRules[i].ruleData()->rule()); |
+ ensureStyleRuleList()->append(m_matchedRules[i].ruleData()->rule()); |
return; |
} |