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

Unified Diff: Source/web/WebSearchableFormData.cpp

Issue 1323023005: Do not create FormDataList instances. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/html/FormDataList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSearchableFormData.cpp
diff --git a/Source/web/WebSearchableFormData.cpp b/Source/web/WebSearchableFormData.cpp
index e23b166cea87218de945a567dc0475c6cd90beea..57a248177aefff2d0447ecac0f2e926dde98a48f 100644
--- a/Source/web/WebSearchableFormData.cpp
+++ b/Source/web/WebSearchableFormData.cpp
@@ -34,7 +34,7 @@
#include "core/HTMLNames.h"
#include "core/InputTypeNames.h"
#include "core/dom/Document.h"
-#include "core/html/FormDataList.h"
+#include "core/html/DOMFormData.h"
#include "core/html/HTMLFormControlElement.h"
#include "core/html/HTMLFormElement.h"
#include "core/html/HTMLInputElement.h"
@@ -210,11 +210,11 @@ bool buildSearchString(const HTMLFormElement* form, Vector<char>* encodedString,
if (control->isDisabledFormControl() || control->name().isNull())
continue;
- FormDataList* dataList = FormDataList::create(*encoding);
- if (!control->appendFormData(*dataList, false))
+ DOMFormData* formData = DOMFormData::create(*encoding);
+ if (!control->appendFormData(*formData, false))
continue;
- for (const FormDataList::Item& item : dataList->items()) {
+ for (const FormDataList::Item& item : formData->items()) {
if (!encodedString->isEmpty())
encodedString->append('&');
FormDataBuilder::encodeStringAsFormData(*encodedString, item.key());
« no previous file with comments | « Source/core/html/FormDataList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698