PRUint32 i;
PRInt32 i; nsIDOMRange* range;
nsTypedSelection::Repaint(nsIPresContext* aPresContext){  PRUint32 arrCount = 0;  if (!mRangeArray)    return NS_ERROR_NULL_POINTER;  nsCOMPtr<nsISupports> isupp;  nsCOMPtr<nsIDOMRange> range;  nsresult result = mRangeArray->Count(&arrCount);  if (NS_FAILED(result))    return result;  if (arrCount < 1)    return NS_OK;  PRUint32 i;  for (i = 0; i < arrCount; i++)  {    result = mRangeArray->GetElementAt(i, getter_AddRefs(isupp));    if (NS_FAILED(result))      return result;    if (!isupp)      return NS_ERROR_NULL_POINTER;    range = do_QueryInterface(isupp);    if (!range)      return NS_ERROR_NULL_POINTER;    result = selectFrames(aPresContext, range, PR_TRUE);    if (NS_FAILED(result))      return result;  }  return NS_OK;}