mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 13:25:00 +00:00
Fix for smoketest blocker bug 116410. Fix loop so it increments when deleting objects. r=rbs, sr=sfraser.
This commit is contained in:
parent
52ccdf9881
commit
e90f24b6a7
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user