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

Unified Diff: Source/core/css/CSSImportRule.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/CSSImportRule.h ('k') | Source/core/css/CSSKeyframesRule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSImportRule.cpp
diff --git a/Source/core/css/CSSImportRule.cpp b/Source/core/css/CSSImportRule.cpp
index a552f7b9560a87ea6a8dc330c7c0c5684ffae14b..8d5af2f77094b536a80fbebe88197d11685b9008 100644
--- a/Source/core/css/CSSImportRule.cpp
+++ b/Source/core/css/CSSImportRule.cpp
@@ -38,9 +38,9 @@ CSSImportRule::CSSImportRule(StyleRuleImport* importRule, CSSStyleSheet* parent)
CSSImportRule::~CSSImportRule()
{
+#if !ENABLE(OILPAN)
if (m_styleSheetCSSOMWrapper)
m_styleSheetCSSOMWrapper->clearOwnerRule();
-#if !ENABLE(OILPAN)
// MediaList and the parent CSSImportRule are both on the oilpan heap and die together.
// Therefor clearing is not needed nor allowed since it could be touching already
// finalized memory.
@@ -100,6 +100,7 @@ void CSSImportRule::trace(Visitor* visitor)
{
visitor->trace(m_importRule);
visitor->trace(m_mediaCSSOMWrapper);
+ visitor->trace(m_styleSheetCSSOMWrapper);
CSSRule::trace(visitor);
}
« no previous file with comments | « Source/core/css/CSSImportRule.h ('k') | Source/core/css/CSSKeyframesRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698