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

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

Issue 192473003: Move CSSRuleList to the garbage collected heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback from Haraken-san 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
Index: Source/core/css/CSSRuleList.cpp
diff --git a/Source/core/css/CSSRuleList.cpp b/Source/core/css/CSSRuleList.cpp
index 499518bde5d45da3b6ce26c1cbaffecb21fad241..21bf906cd4bc500f1d1e1ed8e27738fe4527e5de 100644
--- a/Source/core/css/CSSRuleList.cpp
+++ b/Source/core/css/CSSRuleList.cpp
@@ -35,7 +35,9 @@ CSSRuleList::~CSSRuleList()
}
StaticCSSRuleList::StaticCSSRuleList()
+#if !ENABLE(OILPAN)
: m_refCount(1)
+#endif
{
}
@@ -43,11 +45,19 @@ StaticCSSRuleList::~StaticCSSRuleList()
{
}
+#if !ENABLE(OILPAN)
void StaticCSSRuleList::deref()
{
ASSERT(m_refCount);
if (!--m_refCount)
delete this;
}
+#endif
+
+void StaticCSSRuleList::trace(Visitor* visitor)
+{
+ visitor->trace(m_rules);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698