diff --git a/accessible/src/html/nsHTMLFormControlAccessible.cpp b/accessible/src/html/nsHTMLFormControlAccessible.cpp index 8f7e2752e2e0..ee2e44c18972 100644 --- a/accessible/src/html/nsHTMLFormControlAccessible.cpp +++ b/accessible/src/html/nsHTMLFormControlAccessible.cpp @@ -212,7 +212,7 @@ NS_IMETHODIMP nsHTMLButtonAccessible::GetAccName(nsAWritableString& _retval) // ----- HTML 4 Button: can contain arbitrary HTML content ----- nsHTML4ButtonAccessible::nsHTML4ButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell): -nsBlockAccessible(aNode, aShell) +nsLeafAccessible(aNode, aShell) { } diff --git a/accessible/src/html/nsHTMLFormControlAccessible.h b/accessible/src/html/nsHTMLFormControlAccessible.h index de85c1b170a2..31d64874d1b1 100644 --- a/accessible/src/html/nsHTMLFormControlAccessible.h +++ b/accessible/src/html/nsHTMLFormControlAccessible.h @@ -78,7 +78,7 @@ public: NS_IMETHOD AccDoAction(PRUint8 index); }; -class nsHTML4ButtonAccessible : public nsBlockAccessible +class nsHTML4ButtonAccessible : public nsLeafAccessible { public: