nsCOMPtr<nsIFormControlFrame> formControlFrame = getter_AddRefs(GetFormControlFrame(PR_TRUE));  nsCOMPtr<nsITextControlFrame> textControlFrame(do_QueryInterface(formControlFrame));  if (textControlFrame) { PRInt32 selectionEnd; return textControlFrame->GetSelectionRange(aSelectionStart, &selectionEnd); }  return NS_OK;
PRInt32 selEnd; return GetSelectionRange(aSelectionStart, &selEnd);
nsHTMLTextAreaElement::GetSelectionStart(PRInt32 *aSelectionStart){  NS_ENSURE_ARG_POINTER(aSelectionStart);  nsCOMPtr<nsIFormControlFrame> formControlFrame = getter_AddRefs(GetFormControlFrame(PR_TRUE));  nsCOMPtr<nsITextControlFrame>    textControlFrame(do_QueryInterface(formControlFrame));      if (textControlFrame) {    PRInt32 selectionEnd;    return textControlFrame->GetSelectionRange(aSelectionStart, &selectionEnd);  }  return NS_OK;}