mFlags &= ~NS_SINK_FLAG_FORM_ON_STACK;
HTMLContentSink::CloseForm(const nsIParserNode& aNode){  MOZ_TIMER_DEBUGLOG(("Start: nsHTMLContentSink::CloseForm()\n"));  MOZ_TIMER_START(mWatch);  nsresult result = NS_OK;  mCurrentContext->FlushTextAndRelease();  SINK_TRACE_NODE(SINK_TRACE_CALLS,                  "HTMLContentSink::CloseForm", aNode,                   mCurrentContext->mStackPos-1, this);  if (nsnull != mCurrentForm) {    // Check if this is a well-formed form    if (mCurrentContext->IsCurrentContainer(eHTMLTag_form)) {      result = mCurrentContext->CloseContainer(aNode);    }    else if (mCurrentContext->IsAncestorContainer(eHTMLTag_form)) {      result = mCurrentContext->DemoteForm(aNode);    }    NS_RELEASE(mCurrentForm);  }  MOZ_TIMER_DEBUGLOG(("Stop: nsHTMLContentSink::CloseForm()\n"));  MOZ_TIMER_STOP(mWatch);  return result;}