Blur(); return NS_OK;
nsresult rv = NS_OK;  nsIFormControlFrame* formControlFrame = nsnull; rv = nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame); if (NS_SUCCEEDED(rv)) { formControlFrame->SetFocus(PR_FALSE, PR_FALSE); }  nsCOMPtr<nsIEventStateManager> esm; if (NS_OK == aPresContext->GetEventStateManager(getter_AddRefs(esm))) {  nsCOMPtr<nsIDocument> doc; GetDocument(*getter_AddRefs(doc)); if (!doc) return NS_ERROR_NULL_POINTER;  nsCOMPtr<nsIContent> rootContent; rootContent = getter_AddRefs(doc->GetRootContent()); rv = esm->SetContentState(rootContent, NS_EVENT_STATE_FOCUS); }  return rv;
nsHTMLInputElement::RemoveFocus(nsIPresContext* aPresContext){  // XXX Should focus only this presContext  Blur();  return NS_OK;}