nsCOMPtr<nsIFormControlFrame> formControlFrame = getter_AddRefs(GetFormControlFrame(PR_TRUE));  nsCOMPtr<nsITextControlFrame> textControlFrame(do_QueryInterface(formControlFrame));  if (textControlFrame) { PRInt32 selectionStart; return textControlFrame->GetSelectionRange(&selectionStart, aSelectionEnd); }  return NS_OK;
PRInt32 selStart; return GetSelectionRange(&selStart, aSelectionEnd);
nsHTMLTextAreaElement::GetSelectionEnd(PRInt32 *aSelectionEnd){  NS_ENSURE_ARG_POINTER(aSelectionEnd);  nsCOMPtr<nsIFormControlFrame> formControlFrame = getter_AddRefs(GetFormControlFrame(PR_TRUE));  nsCOMPtr<nsITextControlFrame>    textControlFrame(do_QueryInterface(formControlFrame));      if (textControlFrame) {    PRInt32 selectionStart;    return textControlFrame->GetSelectionRange(&selectionStart, aSelectionEnd);  }  return NS_OK;}