Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: Source/WebCore/dom/ContainerNode.cpp

Issue 6685081: Merge 80487 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/dom-method-document-change-expected.txt ('k') | Source/WebCore/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « LayoutTests/fast/dom/dom-method-document-change-expected.txt ('k') | Source/WebCore/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698