| 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;
|
|
|