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

Unified Diff: Source/core/dom/shadow/ElementShadow.cpp

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Minor cleanup. Created 6 years, 7 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/dom/shadow/ElementShadow.cpp
diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp
index ba11a7035476768c2f723cc0defafba3f50454b5..1b5c64ff636f048105f094addce0f70f3f10fe7a 100644
--- a/Source/core/dom/shadow/ElementShadow.cpp
+++ b/Source/core/dom/shadow/ElementShadow.cpp
@@ -135,7 +135,9 @@ ElementShadow::ElementShadow()
ElementShadow::~ElementShadow()
{
+#if !ENABLE(OILPAN)
removeDetachedShadowRoots();
+#endif
}
ShadowRoot& ElementShadow::addShadowRoot(Element& shadowHost, ShadowRoot::ShadowRootType type)
@@ -350,4 +352,9 @@ void ElementShadow::clearDistribution()
root->setShadowInsertionPointOfYoungerShadowRoot(nullptr);
}
+void ElementShadow::trace(Visitor* visitor)
+{
+ visitor->mark(m_shadowRoots.head());
sof 2014/05/05 11:27:48 nit: you prefer to use mark() on raw pointers inst
Mads Ager (chromium) 2014/05/05 11:35:54 Oops. Nothing special going on here. In the old da
+}
+
} // namespace

Powered by Google App Engine
This is Rietveld 408576698