printf("\nPresShell@%p: adding reflow command\n", this);
PRINTF("\nPresShell@%p: adding reflow command\n", this);
PresShell::AppendReflowCommand(nsIReflowCommand* aReflowCommand){#ifdef DEBUG  //printf("gShellCounter: %d\n", gShellCounter++);  if (mInVerifyReflow) {    return NS_OK;  }    if (VERIFY_REFLOW_NOISY_RC & gVerifyReflowFlags) {    printf("\nPresShell@%p: adding reflow command\n", this);    aReflowCommand->List(stdout);    if (VERIFY_REFLOW_REALLY_NOISY_RC & gVerifyReflowFlags) {      printf("Current content model:\n");      nsCOMPtr<nsIContent> rootContent;      rootContent = getter_AddRefs(mDocument->GetRootContent());      if (rootContent) {        rootContent->List(stdout, 0);      }    }  }  #endif  // Add the reflow command to the queue  nsresult rv = NS_OK;  if (!AlreadyInQueue(aReflowCommand)) {    NS_ADDREF(aReflowCommand);    rv = (mReflowCommands.AppendElement(aReflowCommand) ? NS_OK : NS_ERROR_OUT_OF_MEMORY);    ReflowCommandAdded(aReflowCommand);  }  // For async reflow during doc load, post a reflow event if we are not batching reflow commands.  // For sync reflow during doc load, post a reflow event if we are not batching reflow commands  // and the document is not loading.  if ((gAsyncReflowDuringDocLoad && !mBatchReflows) ||      (!gAsyncReflowDuringDocLoad && !mBatchReflows && !mDocumentLoading)) {    // If we're in the middle of a drag, process it right away (needed for mac,    // might as well do it on all platforms just to keep the code paths the same).    if ( IsDragInProgress() )      FlushPendingNotifications();    else      PostReflowEvent();  }  return rv;}