NS_FRAME_LOG(NS_FRAME_TRACE_CALLS, ("PresShell::ProcessReflowCommands: end reflow command"));
PresShell::ProcessReflowCommands(){  if (0 != mReflowCommands.Count()) {    nsReflowMetrics desiredSize(nsnull);    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);      PR_LOG(gShellLogModuleInfo, PR_LOG_DEBUG,             ("PresShell::ProcessReflowCommands: reflow command type=%d", type));#endif      rc->Dispatch(*mPresContext, desiredSize, maxSize);      NS_RELEASE(rc);    }    // Place and size the root frame    mRootFrame->SizeTo(desiredSize.width, desiredSize.height);#ifdef NS_DEBUG    if (nsIFrame::GetVerifyTreeEnable()) {      mRootFrame->VerifyTree();    }#endif  }}