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..f0dde8e798cf63564359013f2ea4dfd5c607e46b 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->trace(m_shadowRoots.head()); |
haraken
2014/05/06 04:20:16
Let's add a comment to mention why we just need to
Mads Ager (chromium)
2014/05/06 08:26:00
Done.
|
+} |
+ |
} // namespace |