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

Side by Side Diff: webkit/glue/form_field_values.cc

Issue 342032: Remove the element_ member of FormField, as we don't use it and shouldn't be ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/form_field.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "Frame.h" 7 #include "Frame.h"
8 #include "HTMLFormElement.h" 8 #include "HTMLFormElement.h"
9 #include "HTMLInputElement.h" 9 #include "HTMLInputElement.h"
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // For each TEXT input field, store the name and value 62 // For each TEXT input field, store the name and value
63 string16 value = StringToString16(input_element->value()); 63 string16 value = StringToString16(input_element->value());
64 TrimWhitespace(value, TRIM_LEADING, &value); 64 TrimWhitespace(value, TRIM_LEADING, &value);
65 if (value.length() == 0) 65 if (value.length() == 0)
66 continue; 66 continue;
67 67
68 string16 name = StringToString16(WebKit::nameOfInputElement(input_element)); 68 string16 name = StringToString16(WebKit::nameOfInputElement(input_element));
69 if (name.length() == 0) 69 if (name.length() == 0)
70 continue; // If we have no name, there is nothing to store. 70 continue; // If we have no name, there is nothing to store.
71 71
72 result->elements.push_back(FormField(form_element, name, value)); 72 result->elements.push_back(FormField(name, value));
73 } 73 }
74 74
75 return result; 75 return result;
76 } 76 }
77 77
78 } // namespace webkit_glue 78 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/form_field.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698