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

Unified Diff: Source/core/html/forms/FormController.cpp

Issue 277753003: Oilpan: Prepare to move FormController and DocumentState to Oilpan heap, and remove RefPtrs to HTML… (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/html/forms/FormController.cpp
diff --git a/Source/core/html/forms/FormController.cpp b/Source/core/html/forms/FormController.cpp
index d7c6b30c389f4df47053fee19b54b96ff01378ef..02dbdf8117072ffbf91c8db865ccdd0c290f3207 100644
--- a/Source/core/html/forms/FormController.cpp
+++ b/Source/core/html/forms/FormController.cpp
@@ -374,15 +374,20 @@ void FormKeyGenerator::willDeleteForm(HTMLFormElement* form)
// ----------------------------------------------------------------------------
-PassRefPtr<DocumentState> DocumentState::create()
+PassRefPtrWillBeRawPtr<DocumentState> DocumentState::create()
{
- return adoptRef(new DocumentState);
+ return adoptRefWillBeNoop(new DocumentState);
}
DocumentState::~DocumentState()
{
}
+void DocumentState::trace(Visitor* visitor)
+{
+ visitor->trace(m_formControls);
+}
+
void DocumentState::addControl(HTMLFormControlElementWithState* control)
{
ASSERT(!m_formControls.contains(control));
@@ -443,6 +448,11 @@ FormController::~FormController()
{
}
+void FormController::trace(Visitor* visitor)
+{
+ visitor->trace(m_documentState);
+}
+
DocumentState* FormController::formElementsState() const
{
return m_documentState.get();

Powered by Google App Engine
This is Rietveld 408576698