if ((nsEventStatus_eIgnore == *aEventStatus) && !(aFlags & NS_EVENT_FLAG_CAPTURE) && (aEvent->message == NS_BLUR_CONTENT) && formControlFrame != nsnull) { formControlFrame->SetFocus(PR_FALSE, PR_TRUE); }
nsHTMLSelectElement::HandleDOMEvent(nsIPresContext* aPresContext,                           nsEvent* aEvent,                           nsIDOMEvent** aDOMEvent,                           PRUint32 aFlags,                           nsEventStatus* aEventStatus){  // Do not process any DOM events if the element is disabled  PRBool disabled;  nsresult rv = GetDisabled(&disabled);  if (NS_FAILED(rv) || disabled) {    return rv;  }  nsIFormControlFrame* formControlFrame = nsnull;  rv = nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame);  nsIFrame* formFrame = nsnull;  if (formControlFrame && NS_SUCCEEDED(formControlFrame->QueryInterface(kIFrameIID, (void **)&formFrame)) && formFrame)  {    const nsStyleUserInterface* uiStyle;    formFrame->GetStyleData(eStyleStruct_UserInterface, (const nsStyleStruct *&)uiStyle);    if (uiStyle->mUserInput == NS_STYLE_USER_INPUT_NONE ||        uiStyle->mUserInput == NS_STYLE_USER_INPUT_DISABLED)    {      return NS_OK;    }  }  return mInner.HandleDOMEvent(aPresContext, aEvent, aDOMEvent,                               aFlags, aEventStatus);}