fix returned error code for nsIAccessibleHyperText implementation with nsIFrameAccessible

bug=155873 r=aaronl sr=jst patch=gilbert.fang@sun.com


git-svn-id: svn://10.0.0.236/trunk@124817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pete.zha%sun.com
2002-07-09 02:48:20 +00:00
parent c93acea7f0
commit 8291b6d5c8

View File

@@ -281,7 +281,7 @@ nsresult nsHTMLIFrameAccessible::GetLinkIndexFromAccNode(nsIAccessible *aAccNode
return NS_OK;
}
*_retval = -1;
return NS_ERROR_INVALID_ARG;
return NS_OK;
}
//begin to count char length
@@ -289,9 +289,10 @@ nsresult nsHTMLIFrameAccessible::GetLinkIndexFromAccNode(nsIAccessible *aAccNode
aAccNode->GetAccName(tempAccName);
charLength = tempAccName.Length();
if (aCharIndex < charLength) {
rv = NS_OK;
*_retval = -1;
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
if (IsHyperLink(aAccNode)) {
links = 1;