Index: Source/core/rendering/RenderFileUploadControl.cpp |
diff --git a/Source/core/rendering/RenderFileUploadControl.cpp b/Source/core/rendering/RenderFileUploadControl.cpp |
index 133f8a83af0e931af9631e82df58e213e8dcf3ef..de9bfba1d8dddbb3d284571ebb896e37adb7a592 100644 |
--- a/Source/core/rendering/RenderFileUploadControl.cpp |
+++ b/Source/core/rendering/RenderFileUploadControl.cpp |
@@ -206,7 +206,7 @@ HTMLInputElement* RenderFileUploadControl::uploadButton() const |
// FIXME: This should be on HTMLInputElement as an API like innerButtonElement(). |
HTMLInputElement* input = toHTMLInputElement(node()); |
Node* buttonNode = input->userAgentShadowRoot()->firstChild(); |
- return buttonNode && buttonNode->isHTMLElement() && buttonNode->hasTagName(inputTag) ? toHTMLInputElement(buttonNode) : 0; |
+ return isHTMLInputElement(buttonNode) ? toHTMLInputElement(buttonNode) : 0; |
} |
String RenderFileUploadControl::buttonValue() |