Index: Source/WebCore/dom/ShadowRoot.cpp |
=================================================================== |
--- Source/WebCore/dom/ShadowRoot.cpp (revision 145445) |
+++ Source/WebCore/dom/ShadowRoot.cpp (working copy) |
@@ -52,7 +52,7 @@ |
}; |
ShadowRoot::ShadowRoot(Document* document, ShadowRootType type) |
- : DocumentFragment(document, CreateShadowRoot) |
+ : DocumentFragment(0, CreateShadowRoot) |
, TreeScope(this, document) |
, m_prev(0) |
, m_next(0) |
@@ -63,7 +63,6 @@ |
, m_registeredWithParentShadowRoot(false) |
{ |
ASSERT(document); |
- setTreeScope(this); |
#if PLATFORM(CHROMIUM) |
if (type == ShadowRoot::AuthorShadowRoot) { |
@@ -89,6 +88,11 @@ |
clearRareData(); |
} |
+void ShadowRoot::dispose() |
+{ |
+ removeDetachedChildren(); |
+} |
+ |
PassRefPtr<Node> ShadowRoot::cloneNode(bool, ExceptionCode& ec) |
{ |
ec = DATA_CLONE_ERR; |