rc = NS_STATIC_CAST(nsIReflowCommand*, mReflowCommands.ElementAt(0));
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mReflowCommands.ElementAt(0));
PresShell::CancelAllReflowCommands(){  PRInt32 n = mReflowCommands.Count();  nsIReflowCommand* rc;  PRInt32 i;  for (i = 0; i < n; i++) {    rc = NS_STATIC_CAST(nsIReflowCommand*, mReflowCommands.ElementAt(0));    mReflowCommands.RemoveElementAt(0);    ReflowCommandRemoved(rc);    NS_RELEASE(rc);  }  n = mTimeoutReflowCommands.Count();  for (i = 0; i < n; i++) {    rc = NS_STATIC_CAST(nsIReflowCommand*, mTimeoutReflowCommands.ElementAt(0));    mTimeoutReflowCommands.RemoveElementAt(0);    ReflowCommandRemoved(rc);    NS_RELEASE(rc);  }  DoneRemovingReflowCommands();  return NS_OK;}