nsIFrame* frame = nsnull;
nsIFrame* frame;
PresShell::ContentAppended(nsIDocument *aDocument,                           nsIContent* aContainer,                           PRInt32     aNewIndexInContainer){  EnterReflowLock();  NS_START_STOPWATCH(mFrameCreationWatch)  nsresult  rv = mStyleSet->ContentAppended(mPresContext, aContainer, aNewIndexInContainer);  VERIFY_STYLE_TREE;  if (NS_SUCCEEDED(rv) && nsnull != mHistoryState) {    // If history state has been set by session history, ask the frame manager     // to restore frame state for the frame hierarchy created for the chunk of    // content that just came in.    nsIFrame* frame = nsnull;    rv = GetPrimaryFrameFor(aContainer, &frame);    if (NS_SUCCEEDED(rv))      mFrameManager->RestoreFrameState(frame, mHistoryState);  }  NS_STOP_STOPWATCH(mFrameCreationWatch)  ExitReflowLock();  return rv;}