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

Unified Diff: Source/core/html/HTMLDocument.cpp

Issue 23437003: Implement cloneNode for Document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use SecurityContext::isolatedCopy instead and domain change test Created 7 years, 2 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/html/HTMLDocument.h ('k') | Source/core/svg/SVGDocument.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLDocument.cpp
diff --git a/Source/core/html/HTMLDocument.cpp b/Source/core/html/HTMLDocument.cpp
index 5e0116bf848c9b6382ef5ae7f1b966b87a923fd0..c0d590ac7639f7c32d1993b019c6966f376db1b8 100644
--- a/Source/core/html/HTMLDocument.cpp
+++ b/Source/core/html/HTMLDocument.cpp
@@ -205,6 +205,11 @@ void HTMLDocument::setVlinkColor(const AtomicString& value)
setBodyAttribute(vlinkAttr, value);
}
+PassRefPtr<Document> HTMLDocument::cloneDocumentWithoutChildren()
+{
+ return create(DocumentInit(url()).withRegistrationContext(registrationContext()));
+}
+
// --------------------------------------------------------------------------
// not part of the DOM
// --------------------------------------------------------------------------
« no previous file with comments | « Source/core/html/HTMLDocument.h ('k') | Source/core/svg/SVGDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698