summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/form_manager.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-03 01:54:27 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-03 01:54:27 +0000
commit0539cee58b9419aef6fb4737a6f7501a17119e4a (patch)
tree8edbad39c157054481882746bd70b5e9cad6188a /chrome/renderer/form_manager.cc
parentd0d96c1f6ff26bce43a441d7f3fd725a98ff3d6e (diff)
downloadchromium_src-0539cee58b9419aef6fb4737a6f7501a17119e4a.zip
chromium_src-0539cee58b9419aef6fb4737a6f7501a17119e4a.tar.gz
chromium_src-0539cee58b9419aef6fb4737a6f7501a17119e4a.tar.bz2
Attempt to fix the perf regression: remove the code that calls LabelForElement.
TBR=dhollowa BUG=none TEST=none Review URL: http://codereview.chromium.org/1520015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/form_manager.cc')
-rw-r--r--chrome/renderer/form_manager.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/form_manager.cc b/chrome/renderer/form_manager.cc
index 7c3fa73..3915d31 100644
--- a/chrome/renderer/form_manager.cc
+++ b/chrome/renderer/form_manager.cc
@@ -58,7 +58,9 @@ void FormManager::WebFormControlElementToFormField(
const WebFormControlElement& element, FormField* field) {
DCHECK(field);
- field->set_label(LabelForElement(element));
+ // TODO(jhawkins): LabelForElement. We use nameForAutofill() temporarily to
+ // diagnose a perf issue.
+ field->set_label(element.nameForAutofill());
field->set_name(element.nameForAutofill());
field->set_form_control_type(element.formControlType());