Index: Source/core/html/HTMLFormControlElement.cpp |
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp |
index 08ac138310c5ce5c1f779fb581780ac7d2b0f682..b1507544c8fa9a7242174c3d6d55b659a837c43c 100644 |
--- a/Source/core/html/HTMLFormControlElement.cpp |
+++ b/Source/core/html/HTMLFormControlElement.cpp |
@@ -184,7 +184,7 @@ static bool shouldAutofocus(HTMLFormControlElement* element) |
// FIXME: Should this set of hasTagName checks be replaced by a |
// virtual member function? |
if (element->hasTagName(inputTag)) |
- return !static_cast<HTMLInputElement*>(element)->isInputTypeHidden(); |
+ return !toHTMLInputElement(element)->isInputTypeHidden(); |
if (element->hasTagName(selectTag)) |
return true; |
if (element->hasTagName(keygenTag)) |