if (!ok) { if (VERIFY_REFLOW_ALL & gVerifyReflowFlags) { printf("verifyreflow: finished\n"); }
if (VERIFY_REFLOW_ALL & gVerifyReflowFlags) { printf("ProcessReflowCommands: finished (%s)\n", ok ? "ok" : "failed");
PresShell::ProcessReflowCommands(){  if (0 != mReflowCommands.Count()) {    nsHTMLReflowMetrics   desiredSize(nsnull);    nsIRenderingContext*  rcx;    CreateRenderingContext(mRootFrame, &rcx);    while (0 != mReflowCommands.Count()) {      nsIReflowCommand* rc = (nsIReflowCommand*) mReflowCommands.ElementAt(0);      mReflowCommands.RemoveElementAt(0);      // Dispatch the reflow command      nsSize          maxSize;      mRootFrame->GetSize(maxSize);#ifdef NS_DEBUG      nsIReflowCommand::ReflowType type;      rc->GetType(type);      NS_FRAME_LOG(NS_FRAME_TRACE_CALLS,         ("PresShell::ProcessReflowCommands: begin reflow command type=%d",          type));#endif      rc->Dispatch(*mPresContext, desiredSize, maxSize, *rcx);      NS_RELEASE(rc);      NS_FRAME_LOG(NS_FRAME_TRACE_CALLS,         ("PresShell::ProcessReflowCommands: end reflow command"));    }    NS_IF_RELEASE(rcx);#ifdef NS_DEBUG    if (nsIFrame::GetVerifyTreeEnable()) {      mRootFrame->VerifyTree();    }    if (GetVerifyReflowEnable()) {      // First synchronously render what we have so far so that we can      // see it.      nsIView* rootView;      mViewManager->GetRootView(rootView);      mViewManager->UpdateView(rootView, nsnull, NS_VMREFRESH_IMMEDIATE);      mInVerifyReflow = PR_TRUE;      PRBool ok = VerifyIncrementalReflow();      mInVerifyReflow = PR_FALSE;      if (!ok) {        if (VERIFY_REFLOW_ALL & gVerifyReflowFlags) {          printf("verifyreflow: finished\n");        }      }      if (0 != mReflowCommands.Count()) {        printf("XXX yikes! reflow commands queued during verify-reflow\n");      }    }#endif  }  return NS_OK;}