if(mCurrentContext==mHeadContext) { PRInt32 numContexts = mContextStack.Count();  mContextStack.RemoveElementAt(--numContexts); mCurrentContext = nsnull; }
HTMLContentSink::CloseHTML(const nsIParserNode& aNode){  MOZ_TIMER_DEBUGLOG(("Start: nsHTMLContentSink::CloseHTML()\n"));  MOZ_TIMER_START(mWatch);  SINK_TRACE_NODE(SINK_TRACE_CALLS,                  "HTMLContentSink::CloseHTML", aNode, 0, this);  if (nsnull != mHeadContext) {    mHeadContext->End();    delete mHeadContext;    mHeadContext = nsnull;  }  MOZ_TIMER_DEBUGLOG(("Stop: nsHTMLContentSink::CloseHTML()\n"));  MOZ_TIMER_STOP(mWatch);  return NS_OK;}