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/html/DOMFormData.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/html/DOMFormData.h')
-rw-r--r-- | Source/WebCore/html/DOMFormData.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/WebCore/html/DOMFormData.h b/Source/WebCore/html/DOMFormData.h index 842e62b04..adbcbbfc3 100644 --- a/Source/WebCore/html/DOMFormData.h +++ b/Source/WebCore/html/DOMFormData.h @@ -28,12 +28,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DOMFormData_h -#define DOMFormData_h +#pragma once #include "FormDataList.h" #include <wtf/Forward.h> -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> namespace WebCore { @@ -44,11 +42,11 @@ class TextEncoding; class DOMFormData : public FormDataList, public RefCounted<DOMFormData> { public: - static PassRefPtr<DOMFormData> create(HTMLFormElement* form) { return adoptRef(new DOMFormData(form)); } - static PassRefPtr<DOMFormData> create(const TextEncoding& encoding) { return adoptRef(new DOMFormData(encoding)); } + static Ref<DOMFormData> create(HTMLFormElement* form) { return adoptRef(*new DOMFormData(form)); } + static Ref<DOMFormData> create(const TextEncoding& encoding) { return adoptRef(*new DOMFormData(encoding)); } void append(const String& name, const String& value); - void append(const String& name, Blob*, const String& filename = String()); + void append(const String& name, Blob&, const String& filename = String()); private: explicit DOMFormData(const TextEncoding&); @@ -56,5 +54,3 @@ private: }; } // namespace WebCore - -#endif // DOMFormData_h |