summaryrefslogtreecommitdiff
path: root/Source/WebCore/xml/XMLSerializer.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/xml/XMLSerializer.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/xml/XMLSerializer.cpp')
-rw-r--r--Source/WebCore/xml/XMLSerializer.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/WebCore/xml/XMLSerializer.cpp b/Source/WebCore/xml/XMLSerializer.cpp
index 9a9f9a392..cb84bf9bf 100644
--- a/Source/WebCore/xml/XMLSerializer.cpp
+++ b/Source/WebCore/xml/XMLSerializer.cpp
@@ -20,20 +20,13 @@
#include "config.h"
#include "XMLSerializer.h"
-#include "Document.h"
-#include "ExceptionCode.h"
#include "markup.h"
-#include <wtf/text/WTFString.h>
namespace WebCore {
-String XMLSerializer::serializeToString(Node* node, ExceptionCode& ec)
+String XMLSerializer::serializeToString(Node& node)
{
- if (!node) {
- ec = TypeError;
- return String();
- }
- return createMarkup(*node, IncludeNode, 0, DoNotResolveURLs, 0, XMLFragmentSerialization);
+ return createMarkup(node, IncludeNode, nullptr, DoNotResolveURLs, nullptr, XMLFragmentSerialization);
}
} // namespace WebCore