nsEvent event; event.eventStructType = NS_EVENT; event.message = NS_FORM_RESET;
nsHTMLFormElement::Reset(){  // Generate reset event  nsresult rv = NS_OK;  nsCOMPtr<nsIPresContext> presContext;  GetPresContext(this, getter_AddRefs(presContext));  if (presContext) {    nsEventStatus status  = nsEventStatus_eIgnore;    nsEvent event;    event.eventStructType = NS_EVENT;    event.message = NS_FORM_RESET;    rv = HandleDOMEvent(presContext, &event, nsnull, NS_EVENT_FLAG_INIT, &status);  }  return rv;}