Index: Source/WebCore/dom/Node.cpp |
=================================================================== |
--- Source/WebCore/dom/Node.cpp (revision 143085) |
+++ Source/WebCore/dom/Node.cpp (working copy) |
@@ -1106,24 +1106,10 @@ |
detachingNode = this; |
#endif |
- if (renderer()) { |
+ if (renderer()) |
renderer()->destroyAndCleanupAnonymousWrappers(); |
-#ifndef NDEBUG |
- for (Node* node = this; node; node = NodeTraversal::next(node, this)) { |
- RenderObject* renderer = node->renderer(); |
- // RenderFlowThread and the top layer remove elements from the regular tree |
- // hierarchy. They will be cleaned up when we call detach on them. |
-#if ENABLE(DIALOG_ELEMENT) |
- ASSERT(!renderer || renderer->inRenderFlowThread() || (renderer->enclosingLayer()->isInTopLayerSubtree())); |
-#else |
- ASSERT(!renderer || renderer->inRenderFlowThread()); |
-#endif |
- } |
-#endif |
- } |
+ setRenderer(0); |
- ASSERT(!renderer()); |
- |
Document* doc = document(); |
if (isUserActionElement()) { |
if (hovered()) |