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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user