summaryrefslogtreecommitdiff
path: root/Source/WebCore/xml/XMLSerializer.cpp
diff options
context:
space:
mode:
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