Bug 691267 - Remove nsHTMLButtonAccessible duplication, r=surkov

This commit is contained in:
Andrew Quartey
2012-02-22 20:33:37 +09:00
parent 8edf3f0c71
commit bb7fc3573b
10 changed files with 31 additions and 132 deletions

View File

@@ -115,9 +115,8 @@ nsHTMLButtonControlFrame::CreateAccessible()
{
nsAccessibilityService* accService = nsIPresShell::AccService();
if (accService) {
return IsInput() ?
accService->CreateHTMLButtonAccessible(mContent, PresContext()->PresShell()) :
accService->CreateHTML4ButtonAccessible(mContent, PresContext()->PresShell());
return accService->CreateHTMLButtonAccessible(mContent,
PresContext()->PresShell());
}
return nsnull;