Index: Source/WebCore/dom/ContainerNode.cpp |
=================================================================== |
--- Source/WebCore/dom/ContainerNode.cpp (revision 81434) |
+++ Source/WebCore/dom/ContainerNode.cpp (working copy) |
@@ -158,6 +158,7 @@ |
InspectorInstrumentation::willInsertDOMNode(document(), child, this); |
#endif |
+ child->setDocumentRecursively(document()); |
insertBeforeCommon(next.get(), child); |
// Send notification about the children change. |
@@ -306,6 +307,8 @@ |
InspectorInstrumentation::willInsertDOMNode(document(), child.get(), this); |
#endif |
+ child->setDocumentRecursively(document()); |
+ |
// Add child after "prev". |
forbidEventDispatch(); |
Node* next; |
@@ -592,6 +595,8 @@ |
InspectorInstrumentation::willInsertDOMNode(document(), child, this); |
#endif |
+ child->setDocumentRecursively(document()); |
+ |
// Append child to the end of the list |
forbidEventDispatch(); |
child->setParent(this); |