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

Unified Diff: Source/core/xml/XMLHttpRequest.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/xml/XMLHttpRequest.cpp
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp
index d1a700e6e95a61f32adf0d7b5d7298cfbc4e15dd..ebcb33eee1ea8cc0caf6ba49332853160b660702 100644
--- a/Source/core/xml/XMLHttpRequest.cpp
+++ b/Source/core/xml/XMLHttpRequest.cpp
@@ -244,9 +244,9 @@ Document* XMLHttpRequest::responseXML(ExceptionCode& ec)
m_responseDocument = 0;
} else {
if (isHTML)
- m_responseDocument = HTMLDocument::create(0, m_url);
+ m_responseDocument = HTMLDocument::create(DocumentInitializer(m_url));
else
- m_responseDocument = Document::create(0, m_url);
+ m_responseDocument = Document::create(DocumentInitializer(m_url));
// FIXME: Set Last-Modified.
m_responseDocument->setContent(m_responseText.flattenToString());
m_responseDocument->setSecurityOrigin(securityOrigin());

Powered by Google App Engine
This is Rietveld 408576698