MOZ_TIMER_DEBUGLOG(("Stop: nsHTMLContentSink::OpenContainer()\n")); MOZ_TIMER_STOP(mWatch); return rv;
if (nodeType == eHTMLTag_select) { nsCOMPtr<nsISelectElement> select(do_QueryInterface(content)); if (select) { select->DoneAddingContent(PR_FALSE); } }  mStack[mStackPos].mType = nodeType; mStack[mStackPos].mContent = content; mStack[mStackPos].mFlags = 0; mStack[mStackPos].mNumFlushed = 0; mStack[mStackPos].mInsertionPoint = -1; content->SetDocument(mSink->mDocument, PR_FALSE, PR_TRUE);  rv = mSink->AddAttributes(aNode, content);  if (mPreAppend) { NS_ASSERTION(mStackPos > 0, "container w/o parent"); if (mStackPos <= 0) { return NS_ERROR_FAILURE; } nsIHTMLContent* parent = mStack[mStackPos-1].mContent; if (mStack[mStackPos-1].mInsertionPoint != -1) { parent->InsertChildAt(content, mStack[mStackPos-1].mInsertionPoint++, PR_FALSE, PR_FALSE); } else { parent->AppendChildTo(content, PR_FALSE, PR_FALSE); } mStack[mStackPos].mFlags |= APPENDED; } mStackPos++; if (NS_OK != rv) { return rv; }  if (mSink->IsMonolithicContainer(nodeType)) { mSink->mInMonolithicContainer++; }   switch (nodeType) {  case eHTMLTag_noembed: case eHTMLTag_noframes: mSink->mInsideNoXXXTag++; break;  case eHTMLTag_a: mSink->ProcessATag(aNode, content); break; case eHTMLTag_form: case eHTMLTag_table: case eHTMLTag_thead: case eHTMLTag_tbody: case eHTMLTag_tfoot: case eHTMLTag_tr: case eHTMLTag_td: case eHTMLTag_th:  mSink->AddBaseTagInfo(content); break; case eHTMLTag_map: mSink->ProcessMAPTag(aNode, content); break; case eHTMLTag_iframe: mSink->mNumOpenIFRAMES++; break; default: break; }  return NS_OK;
HTMLContentSink::OpenContainer(const nsIParserNode& aNode){  MOZ_TIMER_DEBUGLOG(("Start: nsHTMLContentSink::OpenContainer()\n"));  MOZ_TIMER_START(mWatch);  nsresult rv = NS_OK;  // XXX work around parser bug  if (eHTMLTag_frameset == aNode.GetNodeType()) {    rv = OpenFrameset(aNode);  }  else {    rv = mCurrentContext->OpenContainer(aNode);  }  MOZ_TIMER_DEBUGLOG(("Stop: nsHTMLContentSink::OpenContainer()\n"));  MOZ_TIMER_STOP(mWatch);  return rv;}