Index: Source/core/html/DOMFormData.h |
diff --git a/Source/core/html/DOMFormData.h b/Source/core/html/DOMFormData.h |
index c522b72a0c87ecb3804208915594c170d6ed7f27..25bd56a4fb9c5ae955cfbe3f28563a1114eb32b7 100644 |
--- a/Source/core/html/DOMFormData.h |
+++ b/Source/core/html/DOMFormData.h |
@@ -32,6 +32,7 @@ |
#define DOMFormData_h |
#include "core/html/FormDataList.h" |
+#include "heap/Handle.h" |
#include "wtf/Forward.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -45,14 +46,23 @@ namespace WebCore { |
class Blob; |
class HTMLFormElement; |
-class DOMFormData : public FormDataList, public ScriptWrappable, public RefCounted<DOMFormData> { |
+class DOMFormData : public RefCountedWillBeGarbageCollectedFinalized<DOMFormData>, public FormDataList, public ScriptWrappable { |
public: |
- static PassRefPtr<DOMFormData> create(HTMLFormElement* form) { return adoptRef(new DOMFormData(form)); } |
- static PassRefPtr<DOMFormData> create(const WTF::TextEncoding& encoding) { return adoptRef(new DOMFormData(encoding)); } |
+ static PassRefPtrWillBeRawPtr<DOMFormData> create(HTMLFormElement* form) |
+ { |
+ return adoptRefWillBeNoop(new DOMFormData(form)); |
+ } |
+ |
+ static PassRefPtrWillBeRawPtr<DOMFormData> create(const WTF::TextEncoding& encoding) |
+ { |
+ return adoptRefWillBeNoop(new DOMFormData(encoding)); |
+ } |
void append(const String& name, const String& value); |
void append(const String& name, Blob*, const String& filename = String()); |
+ void trace(Visitor*) { } |
+ |
private: |
explicit DOMFormData(const WTF::TextEncoding&); |
explicit DOMFormData(HTMLFormElement*); |