nsIFormControlFrame* formControlFrame = nsnull; nsresult rv = nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame); if (NS_SUCCEEDED(rv)) {  formControlFrame->SetFocus(PR_FALSE, PR_TRUE); return NS_OK; } return rv;
nsCOMPtr<nsIPresContext> presContext; nsGenericHTMLElement::GetPresContext(this, getter_AddRefs(presContext)); return RemoveFocus(presContext);
nsHTMLButtonElement::Blur(){  nsIFormControlFrame* formControlFrame = nsnull;  nsresult rv = nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame);  if (NS_SUCCEEDED(rv)) {     // Ask the frame to Deselect focus (i.e Blur).    formControlFrame->SetFocus(PR_FALSE, PR_TRUE);    return NS_OK;  }  return rv;}