summaryrefslogtreecommitdiffstats
path: root/webkit/glue/searchable_form_data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/searchable_form_data.cc')
-rw-r--r--webkit/glue/searchable_form_data.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/webkit/glue/searchable_form_data.cc b/webkit/glue/searchable_form_data.cc
index d8a982c..9b03204 100644
--- a/webkit/glue/searchable_form_data.cc
+++ b/webkit/glue/searchable_form_data.cc
@@ -38,7 +38,6 @@ using WebCore::HTMLInputElement;
using WebCore::HTMLOptionElement;
namespace {
-
// TODO(eseidel): appendString and appendEncodedString do *not* follow Google
// style because they are copy/paste from WebKit and will go away as soon as the
// WebKit functions are made public.
@@ -296,8 +295,7 @@ WebCore::HTMLInputElement* GetTextElement(
} // namespace
SearchableFormData* SearchableFormData::Create(WebCore::Element* element) {
- if (!element->isHTMLElement() ||
- !static_cast<WebCore::HTMLElement*>(element)->isGenericFormElement()) {
+ if (!element->isFormControlElement() || !element->isHTMLElement()) {
return NULL;
}