GetPrimaryFrame(this, formControlFrame);
GetPrimaryFrame(this, formControlFrame, PR_TRUE, PR_FALSE);
nsHTMLSelectElement::SetFocus(nsIPresContext* aPresContext){  NS_ENSURE_ARG_POINTER(aPresContext);  // first see if we are disabled or not. If disabled then do nothing.  nsAutoString disabled;  if (NS_CONTENT_ATTR_HAS_VALUE ==      nsGenericHTMLContainerFormElement::GetAttr(kNameSpaceID_HTML,                                                 nsHTMLAtoms::disabled,                                                 disabled)) {    return NS_OK;  }  nsCOMPtr<nsIEventStateManager> esm;  aPresContext->GetEventStateManager(getter_AddRefs(esm));  if (esm) {    esm->SetContentState(this, NS_EVENT_STATE_FOCUS);  }  nsIFormControlFrame* formControlFrame = nsnull;  GetPrimaryFrame(this, formControlFrame);  if (formControlFrame) {    formControlFrame->SetFocus(PR_TRUE, PR_TRUE);    formControlFrame->ScrollIntoView(aPresContext);    // Could call SelectAll(aPresContext) here to automatically    // select text when we receive focus.  }  return NS_OK;}