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

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

Issue 23437003: Implement cloneNode for Document (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
Index: Source/core/html/HTMLDocument.cpp
diff --git a/Source/core/html/HTMLDocument.cpp b/Source/core/html/HTMLDocument.cpp
index 0280bdf6eee709ec8e4e9897d616131abca29ba0..a3e2362ed4c7834bac6f2ea3b6781864336b32e1 100644
--- a/Source/core/html/HTMLDocument.cpp
+++ b/Source/core/html/HTMLDocument.cpp
@@ -216,6 +216,11 @@ void HTMLDocument::setVlinkColor(const String& value)
}
}
+PassRefPtr<Document> HTMLDocument::cloneDocumentWithoutChildren()
+{
+ return create(DocumentInit(url()).withRegistrationContext(registrationContext()));
+}
+
// --------------------------------------------------------------------------
// not part of the DOM
// --------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698