GetPrimaryFrame(this, formControlFrame);
GetPrimaryFrame(this, formControlFrame, PR_TRUE, PR_FALSE);
nsHTMLInputElement::RemoveFocus(nsIPresContext* aPresContext){  NS_ENSURE_ARG_POINTER(aPresContext);  // If we are disabled, we probably shouldn't have focus in the  // first place, so allow it to be removed.  nsresult rv = NS_OK;  nsIFormControlFrame* formControlFrame = nsnull;  GetPrimaryFrame(this, formControlFrame);  if (formControlFrame) {    formControlFrame->SetFocus(PR_FALSE, PR_FALSE);  }  nsCOMPtr<nsIEventStateManager> esm;  aPresContext->GetEventStateManager(getter_AddRefs(esm));  if (esm) {    nsCOMPtr<nsIDocument> doc;    GetDocument(*getter_AddRefs(doc));    if (!doc)      return NS_ERROR_NULL_POINTER;    nsCOMPtr<nsIContent> rootContent;    doc->GetRootContent(getter_AddRefs(rootContent));    rv = esm->SetContentState(rootContent, NS_EVENT_STATE_FOCUS);  }  return rv;}