Index: Source/web/WebSearchableFormData.cpp |
diff --git a/Source/web/WebSearchableFormData.cpp b/Source/web/WebSearchableFormData.cpp |
index 7d65a41fee571ef5c24228790808707e5a2f8576..b24489bc77929719365121c8d5b22462213eee18 100644 |
--- a/Source/web/WebSearchableFormData.cpp |
+++ b/Source/web/WebSearchableFormData.cpp |
@@ -42,6 +42,7 @@ |
#include "core/html/HTMLOptionElement.h" |
#include "core/html/HTMLOptionsCollection.h" |
#include "core/html/HTMLSelectElement.h" |
+#include "core/html/HTMLTextAreaElement.h" |
#include "core/loader/DocumentLoader.h" |
#include "core/page/Frame.h" |
#include "core/platform/network/FormDataBuilder.h" |
@@ -166,7 +167,7 @@ HTMLInputElement* findSuitableSearchInputElement(const HTMLFormElement* form) |
if (control->isDisabledFormControl() || control->name().isNull()) |
continue; |
- if (!IsInDefaultState(control) || control->hasTagName(HTMLNames::textareaTag)) |
+ if (!IsInDefaultState(control) || isHTMLTextAreaElement(control)) |
return 0; |
if (control->hasTagName(HTMLNames::inputTag) && control->willValidate()) { |