Index: Source/web/WebSearchableFormData.cpp |
diff --git a/Source/web/WebSearchableFormData.cpp b/Source/web/WebSearchableFormData.cpp |
index b24489bc77929719365121c8d5b22462213eee18..31bd3ca68a8e1d3176f21d64461047305e1c6e50 100644 |
--- a/Source/web/WebSearchableFormData.cpp |
+++ b/Source/web/WebSearchableFormData.cpp |
@@ -143,8 +143,9 @@ bool IsInDefaultState(HTMLFormControlElement* formElement) |
const HTMLInputElement* inputElement = toHTMLInputElement(formElement); |
if (inputElement->isCheckbox() || inputElement->isRadioButton()) |
return inputElement->checked() == inputElement->hasAttribute(checkedAttr); |
- } else if (formElement->hasTagName(HTMLNames::selectTag)) |
- return IsSelectInDefaultState(static_cast<HTMLSelectElement*>(formElement)); |
+ } else if (formElement->hasTagName(HTMLNames::selectTag)) { |
+ return IsSelectInDefaultState(toHTMLSelectElement(formElement)); |
+ } |
return true; |
} |