Fix for smoketest blocker bug 116410. Fix loop so it increments when deleting objects. r=rbs, sr=sfraser.

This commit is contained in:
bnesse%netscape.com 2001-12-21 22:15:16 +00:00
parent 52ccdf9881
commit e90f24b6a7
2 changed files with 4 additions and 4 deletions

View File

@ -3763,7 +3763,7 @@ PresShell::CancelAllReflowCommands()
nsHTMLReflowCommand* rc;
PRInt32 i;
for (i = 0; i < n; i++) {
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mReflowCommands.ElementAt(0));
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mReflowCommands.ElementAt(i));
ReflowCommandRemoved(rc);
delete rc;
}
@ -3772,7 +3772,7 @@ PresShell::CancelAllReflowCommands()
n = mTimeoutReflowCommands.Count();
for (i = 0; i < n; i++) {
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mTimeoutReflowCommands.ElementAt(0));
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mTimeoutReflowCommands.ElementAt(i));
ReflowCommandRemoved(rc);
delete rc;
}

View File

@ -3763,7 +3763,7 @@ PresShell::CancelAllReflowCommands()
nsHTMLReflowCommand* rc;
PRInt32 i;
for (i = 0; i < n; i++) {
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mReflowCommands.ElementAt(0));
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mReflowCommands.ElementAt(i));
ReflowCommandRemoved(rc);
delete rc;
}
@ -3772,7 +3772,7 @@ PresShell::CancelAllReflowCommands()
n = mTimeoutReflowCommands.Count();
for (i = 0; i < n; i++) {
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mTimeoutReflowCommands.ElementAt(0));
rc = NS_STATIC_CAST(nsHTMLReflowCommand*, mTimeoutReflowCommands.ElementAt(i));
ReflowCommandRemoved(rc);
delete rc;
}