nsFormEvent event(NS_FORM_RESET);
nsFormEvent event(PR_TRUE, NS_FORM_RESET);
nsHTMLFormElement::Reset(){  // Send the reset event  nsresult rv = NS_OK;  nsCOMPtr<nsPresContext> presContext = GetPresContext();  if (presContext) {    // Calling HandleDOMEvent() directly so that reset() will work even if    // the frame does not exist.  This does not have an effect right now, but    // If PresShell::HandleEventWithTarget() ever starts to work for elements    // without frames, that should be called instead.    nsFormEvent event(NS_FORM_RESET);    nsEventStatus status  = nsEventStatus_eIgnore;    HandleDOMEvent(presContext, &event, nsnull, NS_EVENT_FLAG_INIT, &status);  }  return rv;}