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

Unified Diff: Source/web/WebSearchableFormData.cpp

Issue 19096009: Use isHTMLTextAreaElement and toHTMLTextAreaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 5 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/web/WebFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | 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 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()) {
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698