Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: Source/core/loader/FormState.h

Issue 270483003: Oilpan: Prepare to move HTMLFormElement, HTMLFormElement::PastNamesMap, FormKeyGenerator, and FormS… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/loader/FormState.h
diff --git a/Source/core/loader/FormState.h b/Source/core/loader/FormState.h
index 675a98760f0617f789eef63fc287cf62a0437e13..6fd7d53610b2681d5935be3045e12bf403037fbb 100644
--- a/Source/core/loader/FormState.h
+++ b/Source/core/loader/FormState.h
@@ -29,6 +29,7 @@
#ifndef FormState_h
#define FormState_h
+#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -42,9 +43,10 @@ namespace WebCore {
NotSubmittedByJavaScript
};
- class FormState : public RefCounted<FormState> {
+ class FormState FINAL : public RefCountedWillBeGarbageCollected<FormState> {
public:
- static PassRefPtr<FormState> create(HTMLFormElement&, FormSubmissionTrigger);
+ static PassRefPtrWillBeRawPtr<FormState> create(HTMLFormElement&, FormSubmissionTrigger);
+ void trace(Visitor*);
HTMLFormElement* form() const { return m_form.get(); }
Document* sourceDocument() const { return m_sourceDocument.get(); }
@@ -53,8 +55,8 @@ namespace WebCore {
private:
FormState(HTMLFormElement&, FormSubmissionTrigger);
- RefPtr<HTMLFormElement> m_form;
- RefPtr<Document> m_sourceDocument;
+ RefPtrWillBeMember<HTMLFormElement> m_form;
+ RefPtrWillBeMember<Document> m_sourceDocument;
FormSubmissionTrigger m_formSubmissionTrigger;
};

Powered by Google App Engine
This is Rietveld 408576698