Index: Source/web/WebInputElement.cpp |
diff --git a/Source/web/WebInputElement.cpp b/Source/web/WebInputElement.cpp |
index 117e4cac5be9cf150f43a649f54554371681e820..e11deb62a2a81c85a9a965a5589ef9531d81bcab 100644 |
--- a/Source/web/WebInputElement.cpp |
+++ b/Source/web/WebInputElement.cpp |
@@ -215,7 +215,7 @@ WebInputElement::operator PassRefPtr<HTMLInputElement>() const |
WebInputElement* toWebInputElement(WebElement* webElement) |
{ |
- if (!webElement->unwrap<Element>()->hasTagName(HTMLNames::inputTag)) |
+ if (!isHTMLInputElement(*webElement->unwrap<Element>())) |
return 0; |
return static_cast<WebInputElement*>(webElement); |