rv = OnReset(aPresContext);
rv = DoReset();
nsHTMLFormElement::DoSubmitOrReset(nsIPresContext* aPresContext,                                   nsEvent* aEvent,                                   PRInt32 aMessage) {  NS_ENSURE_ARG_POINTER(aPresContext);  // Make sure the presentation is up-to-date  nsCOMPtr<nsIDocument> doc;  GetDocument(*getter_AddRefs(doc));  if (doc) {    doc->FlushPendingNotifications();  }  // JBK Don't get form frames anymore - bug 34297  // Submit or Reset the form  nsresult rv = NS_OK;  if (NS_FORM_RESET == aMessage) {    rv = OnReset(aPresContext);  }  else if (NS_FORM_SUBMIT == aMessage) {    nsIContent *originatingElement = nsnull;    // Get the originating frame (failure is non-fatal)    if (aEvent) {      if (NS_FORM_EVENT == aEvent->eventStructType) {        originatingElement = ((nsFormEvent *)aEvent)->originator;      }    }    // Pass the form originator    rv = nsFormSubmitter::OnSubmit(this, aPresContext, originatingElement);  }  return rv;}