Index: Source/modules/accessibility/AXRenderObject.cpp |
diff --git a/Source/modules/accessibility/AXRenderObject.cpp b/Source/modules/accessibility/AXRenderObject.cpp |
index aaccaacbfc23aac6aa405be6ee28755266f7de4e..8f818fe7d5c5ba77e13a461116d28e7a8ff90189 100644 |
--- a/Source/modules/accessibility/AXRenderObject.cpp |
+++ b/Source/modules/accessibility/AXRenderObject.cpp |
@@ -332,6 +332,8 @@ AccessibilityRole AXRenderObject::determineAccessibilityRole() |
return MenuItemRadioRole; |
return RadioButtonRole; |
} |
+ if (type == InputTypeNames::file) |
+ return ButtonRole; |
if (type == InputTypeNames::number) |
return SpinButtonRole; |
if (input.isTextButton()) |
@@ -343,9 +345,6 @@ AccessibilityRole AXRenderObject::determineAccessibilityRole() |
return TextFieldRole; |
} |
- if (isFileUploadButton()) |
- return ButtonRole; |
- |
if (cssBox && cssBox->isMenuList()) |
return PopUpButtonRole; |
@@ -496,11 +495,6 @@ bool AXRenderObject::isAttachment() const |
return isRenderPart; |
} |
-bool AXRenderObject::isFileUploadButton() const |
-{ |
- return m_renderer && isHTMLInputElement(m_renderer->node()) && toHTMLInputElement(*m_renderer->node()).type() == InputTypeNames::file; |
-} |
- |
static bool isLinkable(const AXObject& object) |
{ |
if (!object.renderer()) |