nsIFormControlFrame* formControlFrame = nsnull; nsresult rv = nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame); if (NS_SUCCEEDED(rv)) { formControlFrame->SetFocus(PR_TRUE, PR_TRUE); return NS_OK; } return rv;
SetElementFocus(PR_TRUE);
nsHTMLSelectElement::Focus(){  nsIFormControlFrame* formControlFrame = nsnull;  nsresult rv = nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame);  if (NS_SUCCEEDED(rv)) {    formControlFrame->SetFocus(PR_TRUE, PR_TRUE);    return NS_OK;  }  return rv;}