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

Unified Diff: Source/web/WebSearchableFormData.cpp

Issue 1338193002: Reduce allocation size of FormData::m_entries. (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/FormDataTest.cpp ('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 ea4b0ec87bb8eff1c26f93544eab7dfbdba2e709..cd380921c6f30bc1fc874292a55ca35d4b449116 100644
--- a/Source/web/WebSearchableFormData.cpp
+++ b/Source/web/WebSearchableFormData.cpp
@@ -216,13 +216,13 @@ bool buildSearchString(const HTMLFormElement& form, Vector<char>* encodedString,
for (const auto& entry : formData->entries()) {
if (!encodedString->isEmpty())
encodedString->append('&');
- FormDataEncoder::encodeStringAsFormData(*encodedString, entry.key());
+ FormDataEncoder::encodeStringAsFormData(*encodedString, entry->key());
encodedString->append('=');
if (&control == textElement) {
encodedString->append("{searchTerms}", 13);
isElementFound = true;
} else {
- FormDataEncoder::encodeStringAsFormData(*encodedString, entry.data());
+ FormDataEncoder::encodeStringAsFormData(*encodedString, entry->data());
}
}
}
« no previous file with comments | « Source/core/html/FormDataTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698