Index: Source/core/dom/shadow/ShadowRoot.cpp |
diff --git a/Source/core/dom/shadow/ShadowRoot.cpp b/Source/core/dom/shadow/ShadowRoot.cpp |
index e5cd390d5ffeb54f196d852074f4ad32930a83d3..23c3f4a3002799e4dc5584d8e8c9684bdda2eec5 100644 |
--- a/Source/core/dom/shadow/ShadowRoot.cpp |
+++ b/Source/core/dom/shadow/ShadowRoot.cpp |
@@ -84,12 +84,12 @@ ShadowRoot::~ShadowRoot() |
// runs so we don't go through TreeScopeAdopter for each child with a |
// destructed tree scope in each descendant. |
removeDetachedChildren(); |
-#endif |
// We must call clearRareData() here since a ShadowRoot class inherits TreeScope |
// as well as Node. See a comment on TreeScope.h for the reason. |
if (hasRareData()) |
clearRareData(); |
+#endif |
} |
void ShadowRoot::dispose() |