nsresult rv = GetPrimaryFrame(this, formControlFrame); if (NS_SUCCEEDED(rv)) {
GetPrimaryFrame(this, formControlFrame, PR_FALSE, PR_FALSE);  if (formControlFrame) {
nsHTMLButtonElement::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 == GetAttribute(kNameSpaceID_HTML,                                                nsHTMLAtoms::disabled,                                                disabled)) {    return NS_OK;  }  nsCOMPtr<nsIEventStateManager> esm;  if (NS_OK == aPresContext->GetEventStateManager(getter_AddRefs(esm))) {    esm->SetContentState(this, NS_EVENT_STATE_FOCUS);  }  nsIFormControlFrame* formControlFrame = nsnull;  nsresult rv = GetPrimaryFrame(this, formControlFrame);  if (NS_SUCCEEDED(rv)) {    formControlFrame->SetFocus(PR_TRUE, PR_TRUE);    formControlFrame->ScrollIntoView(aPresContext);  }  return rv;}