} else {  delete aReflowCommand;
PresShell::AppendReflowCommandInternal(nsIReflowCommand* aReflowCommand,                                       nsVoidArray&      aQueue){  // If we've not yet done the initial reflow, then don't bother  // enqueuing a reflow command yet.  if (! mDidInitialReflow)    return NS_OK;#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", (void*)this);    aReflowCommand->List(stdout);    if (VERIFY_REFLOW_REALLY_NOISY_RC & gVerifyReflowFlags) {      printf("Current content model:\n");      nsCOMPtr<nsIContent> rootContent;      mDocument->GetRootContent(getter_AddRefs(rootContent));      if (rootContent) {        rootContent->List(stdout, 0);      }    }  }  #endif  // Add the reflow command to the queue  nsresult rv = NS_OK;  // don't check for duplicates on the timeout queue - it is responsiblity of frames  // who call SendInterruptNotificationTo to make sure there are no duplicates  if ((&aQueue == &mTimeoutReflowCommands) ||      ((&aQueue == &mReflowCommands) && !AlreadyInQueue(aReflowCommand, aQueue))) {    NS_ADDREF(aReflowCommand);    rv = (aQueue.AppendElement(aReflowCommand) ? NS_OK : NS_ERROR_OUT_OF_MEMORY);    ReflowCommandAdded(aReflowCommand);    NotifyAncestorFramesOfReflowCommand(this, aReflowCommand, PR_TRUE);  }  // 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() )      PostReflowEvent();  }  return rv;}