| Index: Source/core/xml/DOMParser.cpp
|
| diff --git a/Source/core/xml/DOMParser.cpp b/Source/core/xml/DOMParser.cpp
|
| index a60572e2e5cfeace4f48d641b94b827eae2924dc..4e68739295b28a587ef20a905e48d303e134c628 100644
|
| --- a/Source/core/xml/DOMParser.cpp
|
| +++ b/Source/core/xml/DOMParser.cpp
|
| @@ -27,9 +27,14 @@ namespace blink {
|
|
|
| PassRefPtrWillBeRawPtr<Document> DOMParser::parseFromString(const String& str, const String& type)
|
| {
|
| - RefPtrWillBeRawPtr<Document> doc = DOMImplementation::createDocument(type, 0, KURL(), false);
|
| + RefPtrWillBeRawPtr<Document> doc = DOMImplementation::createDocument(type, DocumentInit(KURL(), nullptr, m_contextDocument), false);
|
| doc->setContent(str);
|
| return doc.release();
|
| }
|
|
|
| +DOMParser::DOMParser(Document& document)
|
| + : m_contextDocument(document.contextDocument())
|
| +{
|
| +}
|
| +
|
| } // namespace blink
|
|
|