Index: Source/WebCore/rendering/RenderObjectChildList.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderObjectChildList.cpp (revision 127657) |
+++ Source/WebCore/rendering/RenderObjectChildList.cpp (working copy) |
@@ -138,7 +138,7 @@ |
setLastChild(newChild); |
- if (notifyRenderer) |
+ if (!owner->documentBeingDestroyed() && notifyRenderer) |
newChild->insertedIntoTree(); |
if (!owner->documentBeingDestroyed()) { |
@@ -178,7 +178,7 @@ |
child->setParent(owner); |
- if (notifyRenderer) |
+ if (!owner->documentBeingDestroyed() && notifyRenderer) |
child->insertedIntoTree(); |
if (!owner->documentBeingDestroyed()) { |