Index: Source/WebCore/rendering/RenderObject.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderObject.cpp (revision 109985) |
+++ Source/WebCore/rendering/RenderObject.cpp (working copy) |
@@ -2262,6 +2262,18 @@ |
remove(); |
+#ifndef NDEBUG |
+ if (!documentBeingDestroyed() && view() && view()->hasRenderFlowThreads()) { |
+ // After remove, the object and the associated information should not be in any flow thread. |
+ const RenderFlowThreadList* flowThreadList = view()->renderFlowThreadList(); |
+ for (RenderFlowThreadList::const_iterator iter = flowThreadList->begin(); iter != flowThreadList->end(); ++iter) { |
+ const RenderFlowThread* renderFlowThread = *iter; |
+ ASSERT(!renderFlowThread->hasChild(this)); |
+ ASSERT(!renderFlowThread->hasChildInfo(this)); |
+ } |
+ } |
+#endif |
+ |
// If this renderer had a parent, remove should have destroyed any counters |
// attached to this renderer and marked the affected other counters for |
// reevaluation. This apparently redundant check is here for the case when |