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

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

Issue 192473003: Move CSSRuleList to the garbage collected heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ager feedback Created 6 years, 9 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/CSSGroupingRule.h ('k') | Source/core/css/CSSImportRule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGroupingRule.cpp
diff --git a/Source/core/css/CSSGroupingRule.cpp b/Source/core/css/CSSGroupingRule.cpp
index 152d3be89c51674378e0bb2007b41378711a8743..ec56762b02731406ec9075652ecc6c71d0757c42 100644
--- a/Source/core/css/CSSGroupingRule.cpp
+++ b/Source/core/css/CSSGroupingRule.cpp
@@ -139,7 +139,7 @@ CSSRule* CSSGroupingRule::item(unsigned index) const
CSSRuleList* CSSGroupingRule::cssRules() const
{
if (!m_ruleListCSSOMWrapper)
- m_ruleListCSSOMWrapper = adoptPtr(new LiveCSSRuleList<CSSGroupingRule>(const_cast<CSSGroupingRule*>(this)));
+ m_ruleListCSSOMWrapper = LiveCSSRuleList<CSSGroupingRule>::create(const_cast<CSSGroupingRule*>(this));
return m_ruleListCSSOMWrapper.get();
}
@@ -160,6 +160,7 @@ void CSSGroupingRule::trace(Visitor* visitor)
visitor->trace(m_childRuleCSSOMWrappers);
#endif
visitor->trace(m_groupRule);
+ visitor->trace(m_ruleListCSSOMWrapper);
}
} // namespace WebCore
« no previous file with comments | « Source/core/css/CSSGroupingRule.h ('k') | Source/core/css/CSSImportRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698