if (mFrameset && mCurrentContext->mStackPos > 1) {   PRInt32 parentIndex    = mCurrentContext->mStackPos - 2; nsGenericHTMLElement *parent = mCurrentContext->mStack[parentIndex].mContent; PRInt32 numFlushed     = mCurrentContext->mStack[parentIndex].mNumFlushed; PRInt32 insertionPoint = mCurrentContext->mStack[parentIndex].mInsertionPoint;      if (insertionPoint != -1) { NotifyInsert(parent, mFrameset, insertionPoint - 1); } else { NotifyAppend(parent, numFlushed); } }
HTMLContentSink::OpenFrameset(const nsIParserNode& aNode){  MOZ_TIMER_DEBUGLOG(("Start: nsHTMLContentSink::OpenFrameset()\n"));  MOZ_TIMER_START(mWatch);  SINK_TRACE_NODE(SINK_TRACE_CALLS,                  "HTMLContentSink::OpenFrameset",                   eHTMLTag_frameset,                  mCurrentContext->mStackPos,                   this);  CloseHeadContext(); // do this just in case if the HEAD was left open!  nsresult rv = mCurrentContext->OpenContainer(aNode);  if (NS_SUCCEEDED(rv) && !mFrameset &&      (mFlags & NS_SINK_FLAG_FRAMES_ENABLED)) {    mFrameset =      mCurrentContext->mStack[mCurrentContext->mStackPos - 1].mContent;    NS_ADDREF(mFrameset);  }  MOZ_TIMER_DEBUGLOG(("Stop: nsHTMLContentSink::OpenFrameset()\n"));  MOZ_TIMER_STOP(mWatch);  return rv;}