| Index: Source/core/html/FormController.h
|
| diff --git a/Source/core/html/FormController.h b/Source/core/html/FormController.h
|
| index 551e058095f886c724560785493b6aa504ad587d..d7eae05338bff51311f319f5a12ecc99d49ba715 100644
|
| --- a/Source/core/html/FormController.h
|
| +++ b/Source/core/html/FormController.h
|
| @@ -84,14 +84,14 @@ public:
|
|
|
| CheckedRadioButtons& checkedRadioButtons() { return m_checkedRadioButtons; }
|
|
|
| - void registerFormElementWithState(HTMLFormControlElementWithState* control) { m_formElementsWithState.add(control); }
|
| - void unregisterFormElementWithState(HTMLFormControlElementWithState* control) { m_formElementsWithState.remove(control); }
|
| + void registerFormElementWithState(Handle<HTMLFormControlElementWithState> control) { m_formElementsWithState.add(control.raw()); }
|
| + void unregisterFormElementWithState(Handle<HTMLFormControlElementWithState> control) { m_formElementsWithState.remove(control.raw()); }
|
| // This should be callled only by Document::formElementsState().
|
| Vector<String> formElementsState() const;
|
| // This should be callled only by Document::setStateForNewFormElements().
|
| void setStateForNewFormElements(const Vector<String>&);
|
| void willDeleteForm(HTMLFormElement*);
|
| - void restoreControlStateFor(HTMLFormControlElementWithState&);
|
| + void restoreControlStateFor(Handle<HTMLFormControlElementWithState>);
|
| void restoreControlStateIn(HTMLFormElement&);
|
|
|
| static Vector<String> getReferencedFilePaths(const Vector<String>& stateVector);
|
| @@ -99,12 +99,13 @@ public:
|
| void clearWeakPointers(Visitor*);
|
|
|
| private:
|
| + // FIXME(oilpan): This should be a weak hash set on the heap.
|
| typedef ListHashSet<HTMLFormControlElementWithState*, 64> FormElementListHashSet;
|
| typedef HashMap<RefPtr<AtomicStringImpl>, OwnPtr<SavedFormState> > SavedFormStateMap;
|
|
|
| FormController();
|
| static PassOwnPtr<SavedFormStateMap> createSavedFormStateMap(const FormElementListHashSet&);
|
| - FormControlState takeStateForFormElement(const HTMLFormControlElementWithState&);
|
| + FormControlState takeStateForFormElement(Handle<const HTMLFormControlElementWithState>);
|
| static void formStatesFromStateVector(const Vector<String>&, SavedFormStateMap&);
|
|
|
| CheckedRadioButtons m_checkedRadioButtons;
|
|
|