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

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: 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/inspector/DOMPatchSupport.cpp
diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp
index 06736e91083ed6bacca31e0138ee8abaa3f30039..d54deb864b877f43227a7d387546626362594d63 100644
--- a/Source/core/inspector/DOMPatchSupport.cpp
+++ b/Source/core/inspector/DOMPatchSupport.cpp
@@ -89,11 +89,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());

Powered by Google App Engine
This is Rietveld 408576698