summaryrefslogtreecommitdiff
path: root/Source/WebCore/xml/DOMParser.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/xml/DOMParser.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/xml/DOMParser.cpp')
-rw-r--r--Source/WebCore/xml/DOMParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/xml/DOMParser.cpp b/Source/WebCore/xml/DOMParser.cpp
index 997faca0f..3e20d97eb 100644
--- a/Source/WebCore/xml/DOMParser.cpp
+++ b/Source/WebCore/xml/DOMParser.cpp
@@ -25,7 +25,7 @@
namespace WebCore {
-RefPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType, ExceptionCode& ec)
+PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType, ExceptionCode& ec)
{
if (contentType != "text/html"
&& contentType != "text/xml"
@@ -33,12 +33,12 @@ RefPtr<Document> DOMParser::parseFromString(const String& str, const String& con
&& contentType != "application/xhtml+xml"
&& contentType != "image/svg+xml") {
ec = TypeError;
- return nullptr;
+ return 0;
}
- Ref<Document> doc = DOMImplementation::createDocument(contentType, nullptr, URL());
+ RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, URL(), false);
doc->setContent(str);
- return WTFMove(doc);
+ return doc.release();
}
} // namespace WebCore