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

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

Issue 992903002: Oilpan: implement StyleRuleList without an extra wrapper. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 6 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
« no previous file with comments | « Source/core/css/ElementRuleCollector.h ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/core/css/ElementRuleCollector.h ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698