if (!mBatchReflows) { PostReflowEvent(); }
PresShell::AppendReflowCommand(nsIReflowCommand* aReflowCommand){#ifdef DEBUG  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  nsresult rv = NS_OK;  if (!AlreadyInQueue(aReflowCommand)) {    NS_ADDREF(aReflowCommand);    rv = (mReflowCommands.AppendElement(aReflowCommand) ? NS_OK : NS_ERROR_OUT_OF_MEMORY);  }  return rv;}