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

Unified Diff: Source/core/inspector/DOMPatchSupport.cpp

Issue 18808004: Refactoring: Extract DocumentInit for capture Document construction parameter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed webkit_unit_tests build failure. 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
« no previous file with comments | « Source/core/html/TextDocument.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/DOMPatchSupport.cpp
diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp
index 038d4385bee79623bdb4f7f05822d4c776d0ac41..60978ab227246834f9307a9a18b46a4af03cc3ae 100644
--- a/Source/core/inspector/DOMPatchSupport.cpp
+++ b/Source/core/inspector/DOMPatchSupport.cpp
@@ -86,11 +86,11 @@ void DOMPatchSupport::patchDocument(const String& markup)
{
RefPtr<Document> newDocument;
if (m_document->isHTMLDocument())
- newDocument = HTMLDocument::create(0, KURL());
+ newDocument = HTMLDocument::create();
else if (m_document->isXHTMLDocument())
- newDocument = HTMLDocument::createXHTML(0, KURL());
+ newDocument = HTMLDocument::createXHTML();
else if (m_document->isSVGDocument())
- newDocument = Document::create(0, KURL());
+ newDocument = Document::create();
ASSERT(newDocument);
newDocument->setContextFeatures(m_document->contextFeatures());
« no previous file with comments | « Source/core/html/TextDocument.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698