| Index: Source/core/css/ElementRuleCollector.cpp
|
| diff --git a/Source/core/css/ElementRuleCollector.cpp b/Source/core/css/ElementRuleCollector.cpp
|
| index a69a3d81939f58e138cc7df827d6ef78155cef7f..c29a14438ab00f881b9b77369ee5a2360b172272 100644
|
| --- a/Source/core/css/ElementRuleCollector.cpp
|
| +++ b/Source/core/css/ElementRuleCollector.cpp
|
| @@ -91,9 +91,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()
|
| @@ -235,7 +241,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;
|
| }
|
|
|
|
|