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(); |