nsIReflowCommand* rc = (nsIReflowCommand*) aQueue.ElementAt(i);
nsHTMLReflowCommand* rc = (nsHTMLReflowCommand*) aQueue.ElementAt(i);
PresShell::CancelReflowCommandInternal(nsIFrame*                     aTargetFrame,                                        nsIReflowCommand::ReflowType* aCmdType,                                       nsVoidArray&                  aQueue,                                       PRBool                        aProcessDummyLayoutRequest){  PRInt32 i, n = aQueue.Count();  for (i = 0; i < n; i++) {    nsIReflowCommand* rc = (nsIReflowCommand*) aQueue.ElementAt(i);    if (rc) {      nsIFrame* target;            if (NS_SUCCEEDED(rc->GetTarget(target))) {        if (target == aTargetFrame) {          if (aCmdType != NULL) {            // If aCmdType is specified, only remove reflow commands            // of that type            nsIReflowCommand::ReflowType type;            if (NS_SUCCEEDED(rc->GetType(type))) {              if (type != *aCmdType)                continue;            }          }#ifdef DEBUG          if (VERIFY_REFLOW_NOISY_RC & gVerifyReflowFlags) {            printf("PresShell: removing rc=%p for frame ", (void*)rc);            nsFrame::ListTag(stdout, aTargetFrame);            printf("\n");          }#endif          aQueue.RemoveElementAt(i);          ReflowCommandRemoved(rc);          NotifyAncestorFramesOfReflowCommand(this, rc, PR_FALSE);          NS_RELEASE(rc);          n--;          i--;          continue;        }      }    }  }  if (aProcessDummyLayoutRequest) {    DoneRemovingReflowCommands();  }  return NS_OK;}