Bug 753253 - crash in nsAccessible::ScrollTo, r=tbsaunde

This commit is contained in:
Marco Zehe 2012-05-09 15:17:03 +02:00
parent a572b7e299
commit edff3d587e

View File

@ -2238,6 +2238,9 @@ nsAccessible::DispatchClickEvent(nsIContent *aContent, PRUint32 aActionIndex)
NS_IMETHODIMP
nsAccessible::ScrollTo(PRUint32 aHow)
{
if (IsDefunct())
return NS_ERROR_FAILURE;
nsCoreUtils::ScrollTo(mDoc->PresShell(), mContent, aHow);
return NS_OK;
}