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

Unified Diff: Source/core/editing/markup.cpp

Issue 18808004: Refactoring: Extract DocumentInit for capture Document construction parameter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT Created 7 years, 5 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/editing/markup.cpp
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp
index 0328a3ed9de5f9657b8f58a653b6f6e52d52db30..e109d5cdad44a7b739c29cce122084c08670588d 100644
--- a/Source/core/editing/markup.cpp
+++ b/Source/core/editing/markup.cpp
@@ -708,7 +708,7 @@ PassRefPtr<DocumentFragment> createFragmentFromMarkupWithContext(Document* docum
taggedMarkup.append(markup.substring(fragmentEnd));
RefPtr<DocumentFragment> taggedFragment = createFragmentFromMarkup(document, taggedMarkup.toString(), baseURL, parserContentPolicy);
- RefPtr<Document> taggedDocument = Document::create(0, KURL());
+ RefPtr<Document> taggedDocument = Document::create();
taggedDocument->setContextFeatures(document->contextFeatures());
taggedDocument->takeAllChildrenFrom(taggedFragment.get());

Powered by Google App Engine
This is Rietveld 408576698