From d699843e79d995fbc07a1088ba8f8db2b31df37d Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Thu, 15 Sep 2005 21:13:00 +0000 Subject: [PATCH] Bug 308517. Crash when browse with images off and screen reader running. r+sr=bryner git-svn-id: svn://10.0.0.236/trunk@180311 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsInlineFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/layout/generic/nsInlineFrame.cpp b/mozilla/layout/generic/nsInlineFrame.cpp index 7c8215bb3db..b756d82659a 100644 --- a/mozilla/layout/generic/nsInlineFrame.cpp +++ b/mozilla/layout/generic/nsInlineFrame.cpp @@ -865,7 +865,7 @@ NS_IMETHODIMP nsInlineFrame::GetAccessible(nsIAccessible** aAccessible) if (!accService) return NS_ERROR_FAILURE; if (tagAtom == nsHTMLAtoms::input) // Broken - return accService->CreateHTML4ButtonAccessible(NS_STATIC_CAST(nsIFrame*, this), aAccessible); + return accService->CreateHTMLButtonAccessible(NS_STATIC_CAST(nsIFrame*, this), aAccessible); else if (tagAtom == nsHTMLAtoms::img) // Create accessible for broken return accService->CreateHTMLImageAccessible(NS_STATIC_CAST(nsIFrame*, this), aAccessible); else if (tagAtom == nsHTMLAtoms::label) // Creat accessible for