summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/FormController.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/html/FormController.h
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/html/FormController.h')
-rw-r--r--Source/WebCore/html/FormController.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/Source/WebCore/html/FormController.h b/Source/WebCore/html/FormController.h
index 14620566a..e146b64f6 100644
--- a/Source/WebCore/html/FormController.h
+++ b/Source/WebCore/html/FormController.h
@@ -74,7 +74,10 @@ inline void FormControlState::append(const String& value)
class FormController {
WTF_MAKE_FAST_ALLOCATED;
public:
- FormController();
+ static OwnPtr<FormController> create()
+ {
+ return adoptPtr(new FormController);
+ }
~FormController();
CheckedRadioButtons& checkedRadioButtons() { return m_checkedRadioButtons; }
@@ -92,20 +95,21 @@ public:
void restoreControlStateFor(HTMLFormControlElementWithState&);
void restoreControlStateIn(HTMLFormElement&);
- WEBCORE_EXPORT static Vector<String> getReferencedFilePaths(const Vector<String>& stateVector);
+ static Vector<String> getReferencedFilePaths(const Vector<String>& stateVector);
private:
- typedef ListHashSet<RefPtr<HTMLFormControlElementWithState>> FormElementListHashSet;
- typedef HashMap<RefPtr<AtomicStringImpl>, std::unique_ptr<SavedFormState>> SavedFormStateMap;
+ typedef ListHashSet<RefPtr<HTMLFormControlElementWithState>, 64> FormElementListHashSet;
+ typedef HashMap<RefPtr<AtomicStringImpl>, OwnPtr<SavedFormState>> SavedFormStateMap;
- static std::unique_ptr<SavedFormStateMap> createSavedFormStateMap(const FormElementListHashSet&);
+ FormController();
+ static OwnPtr<SavedFormStateMap> createSavedFormStateMap(const FormElementListHashSet&);
FormControlState takeStateForFormElement(const HTMLFormControlElementWithState&);
static void formStatesFromStateVector(const Vector<String>&, SavedFormStateMap&);
CheckedRadioButtons m_checkedRadioButtons;
FormElementListHashSet m_formElementsWithState;
SavedFormStateMap m_savedFormStateMap;
- std::unique_ptr<FormKeyGenerator> m_formKeyGenerator;
+ OwnPtr<FormKeyGenerator> m_formKeyGenerator;
};
} // namespace WebCore