diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/xml/XMLSerializer.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/xml/XMLSerializer.h')
-rw-r--r-- | Source/WebCore/xml/XMLSerializer.h | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/Source/WebCore/xml/XMLSerializer.h b/Source/WebCore/xml/XMLSerializer.h index 4d255b0e5..02cdfdd88 100644 --- a/Source/WebCore/xml/XMLSerializer.h +++ b/Source/WebCore/xml/XMLSerializer.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003, 2006 Apple Computer, Inc. + * Copyright (C) 2003, 2006 Apple Inc. * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) * * This library is free software; you can redistribute it and/or @@ -17,29 +17,25 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef XMLSerializer_h -#define XMLSerializer_h +#pragma once #include <wtf/Forward.h> -#include <wtf/PassRefPtr.h> +#include <wtf/Ref.h> #include <wtf/RefCounted.h> namespace WebCore { - typedef int ExceptionCode; +class Node; - class Node; +// FIXME: This object has no state, so it seems a waste to allocate and reference count it. +class XMLSerializer : public RefCounted<XMLSerializer> { +public: + static Ref<XMLSerializer> create() { return adoptRef(*new XMLSerializer); } - class XMLSerializer : public RefCounted<XMLSerializer> { - public: - static PassRefPtr<XMLSerializer> create() { return adoptRef(new XMLSerializer); } - - String serializeToString(Node*, ExceptionCode&); - - private: - XMLSerializer() { } - }; + static String serializeToString(Node&); -} // namespace WebCore +private: + XMLSerializer() = default; +}; -#endif // XMLSerializer_h +} // namespace WebCore |