*aReturn = (nsIDOMNode*) mElements->ElementAt(aIndex); return NS_OK;
if (aIndex < pointCount) { nsCOMPtr<nsIContent> result; rv = point->ChildAt(aIndex, getter_AddRefs(result)); if (result && NS_SUCCEEDED(rv)) return result->QueryInterface(NS_GET_IID(nsIDOMNode), (void**)aReturn); else return rv; } }  return NS_ERROR_FAILURE;
nsAnonymousContentList::Item(PRUint32 aIndex, nsIDOMNode** aReturn){  PRUint32 cnt;  nsresult rv = mElements->Count(&cnt);  if (NS_FAILED(rv)) return rv;  if (aIndex >= (PRUint32) cnt)      return NS_ERROR_INVALID_ARG;  // Cast is okay because we're in a closed system.  *aReturn = (nsIDOMNode*) mElements->ElementAt(aIndex);  return NS_OK;}