mCheckedChanged = PR_FALSE;
nsHTMLInputElement::Reset(){  nsresult rv = NS_OK;  PRInt32 type;  GetType(&type);  nsIFormControlFrame* formControlFrame = GetFormControlFrame(PR_FALSE);  // Seems like a dumb idea to reset image.  switch (type) {    case NS_FORM_INPUT_CHECKBOX:    case NS_FORM_INPUT_RADIO:    {      PRBool resetVal;      GetDefaultChecked(&resetVal);      rv = SetChecked(resetVal);      break;    }    case NS_FORM_INPUT_HIDDEN:    case NS_FORM_INPUT_PASSWORD:    case NS_FORM_INPUT_TEXT:    {      // If the frame is there, we have to set the value so that it will show      // up.      if (formControlFrame) {        nsAutoString resetVal;        GetDefaultValue(resetVal);        rv = SetValue(resetVal);      }      SetValueChanged(PR_FALSE);      break;    }    case NS_FORM_INPUT_FILE:    {      // Resetting it to blank should not perform security check      rv = SetValueSecure(NS_LITERAL_STRING(""), nsnull, PR_FALSE);      break;    }    default:      break;  }  // Notify frame that it has been reset  if (formControlFrame) {    formControlFrame->OnContentReset();  }  return rv;}