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

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

Issue 195953003: Oilpan: Move CSSStyleDeclaration and subclasses to the heap using transistion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review 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/CSSStyleRule.h ('k') | Source/core/css/CSSViewportRule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSStyleRule.cpp
diff --git a/Source/core/css/CSSStyleRule.cpp b/Source/core/css/CSSStyleRule.cpp
index 83174405eed3fd5b7dda6611b8321d1cbede97b9..775583f64647fcf1af2399c357ed4d1286187d66 100644
--- a/Source/core/css/CSSStyleRule.cpp
+++ b/Source/core/css/CSSStyleRule.cpp
@@ -47,9 +47,10 @@ CSSStyleRule::CSSStyleRule(StyleRule* styleRule, CSSStyleSheet* parent)
CSSStyleRule::~CSSStyleRule()
{
+#if !ENABLE(OILPAN)
if (m_propertiesCSSOMWrapper)
m_propertiesCSSOMWrapper->clearParentRule();
-
+#endif
if (hasCachedSelectorText()) {
selectorTextCache().remove(this);
setHasCachedSelectorText(false);
@@ -132,6 +133,7 @@ void CSSStyleRule::reattach(StyleRuleBase* rule)
void CSSStyleRule::trace(Visitor* visitor)
{
visitor->trace(m_styleRule);
+ visitor->trace(m_propertiesCSSOMWrapper);
CSSRule::trace(visitor);
}
« no previous file with comments | « Source/core/css/CSSStyleRule.h ('k') | Source/core/css/CSSViewportRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698