ExitReflowLock(PR_TRUE);
DidCauseReflow();
PresShell::ContentAppended(nsIDocument *aDocument,                           nsIContent* aContainer,                           PRInt32     aNewIndexInContainer){  EnterReflowLock();  MOZ_TIMER_DEBUGLOG(("Start: Frame Creation: PresShell::ContentAppended(), this=%p\n", this));  MOZ_TIMER_START(mFrameCreationWatch);  CtlStyleWatch(kStyleWatchEnable,mStyleSet);  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;    rv = GetPrimaryFrameFor(aContainer, &frame);    if (NS_SUCCEEDED(rv) && nsnull != frame)      mFrameManager->RestoreFrameState(mPresContext, frame, mHistoryState);  }  MOZ_TIMER_DEBUGLOG(("Stop: Frame Creation: PresShell::ContentAppended(), this=%p\n", this));  MOZ_TIMER_STOP(mFrameCreationWatch);  CtlStyleWatch(kStyleWatchDisable,mStyleSet);  ExitReflowLock(PR_TRUE);  return rv;}