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

Unified Diff: Source/core/dom/Document.cpp

Issue 22880029: Make AttachBehavior a required argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/core/dom/DOMImplementation.cpp ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 5d44d09f898d59f6fe7ef3f2e44b83a5e5684ded..b0b0ec97452d84b8a7b5899971a5ff89e0d76ce4 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -865,7 +865,7 @@ PassRefPtr<Node> Document::importNode(Node* importedNode, bool deep, ExceptionSt
RefPtr<Node> newChild = importNode(oldChild, true, es);
if (es.hadException())
return 0;
- newElement->appendChild(newChild.release(), es);
+ newElement->appendChild(newChild.release(), es, DeprecatedAttachNow);
if (es.hadException())
return 0;
}
@@ -888,7 +888,7 @@ PassRefPtr<Node> Document::importNode(Node* importedNode, bool deep, ExceptionSt
RefPtr<Node> newChild = importNode(oldChild, true, es);
if (es.hadException())
return 0;
- newFragment->appendChild(newChild.release(), es);
+ newFragment->appendChild(newChild.release(), es, DeprecatedAttachNow);
if (es.hadException())
return 0;
}
« no previous file with comments | « Source/core/dom/DOMImplementation.cpp ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698