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

Unified Diff: Source/core/html/HTMLFormControlElement.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/core/css/resolver/StyleResolver.cpp ('k') | Source/core/html/HTMLTextAreaElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormControlElement.cpp
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp
index 6fc0026caf3575415dcd1c5261ea0067ed263044..07c359f7ce0ec85d2ddb54161dceb85d11574d8a 100644
--- a/Source/core/html/HTMLFormControlElement.cpp
+++ b/Source/core/html/HTMLFormControlElement.cpp
@@ -31,6 +31,7 @@
#include "core/html/HTMLFormElement.h"
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLLegendElement.h"
+#include "core/html/HTMLTextAreaElement.h"
#include "core/html/ValidationMessage.h"
#include "core/html/ValidityState.h"
#include "core/page/UseCounter.h"
@@ -192,7 +193,7 @@ static bool shouldAutofocus(HTMLFormControlElement* element)
return true;
if (element->hasTagName(buttonTag))
return true;
- if (element->hasTagName(textareaTag))
+ if (isHTMLTextAreaElement(element))
return true;
return false;
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/html/HTMLTextAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698