Fix for crash loading bugzilla pages (infinite reflow recursion). by vidur, r=smfr, a=leaf

This commit is contained in:
sfraser%netscape.com 2000-01-28 22:58:17 +00:00
Родитель 50f9c23f8b
Коммит 26912d7426
2 изменённых файлов: 26 добавлений и 12 удалений

Просмотреть файл

@ -2396,6 +2396,19 @@ PresShell::SetReflowEventStatus(PRBool aPending)
return NS_OK;
}
NS_IMETHODIMP
PresShell::FlushPendingNotifications()
{
// XXX Only flush if the lock count is 0. Ideally nothing
// besides Enter/ExitReflowLock should call ProcessReflowCommands.
// Will be changed by Nisheeth.
if (!mReflowLockCount) {
ProcessReflowCommands(PR_FALSE);
}
return NS_OK;
}
NS_IMETHODIMP
PresShell::BeginBatchingReflows()
{
@ -2422,12 +2435,6 @@ PresShell::GetReflowBatchingStatus(PRBool* aIsBatching)
return NS_OK;
}
NS_IMETHODIMP
PresShell::FlushPendingNotifications()
{
return ProcessReflowCommands(PR_FALSE);
}
NS_IMETHODIMP
PresShell::ContentChanged(nsIDocument *aDocument,
nsIContent* aContent,

Просмотреть файл

@ -2396,6 +2396,19 @@ PresShell::SetReflowEventStatus(PRBool aPending)
return NS_OK;
}
NS_IMETHODIMP
PresShell::FlushPendingNotifications()
{
// XXX Only flush if the lock count is 0. Ideally nothing
// besides Enter/ExitReflowLock should call ProcessReflowCommands.
// Will be changed by Nisheeth.
if (!mReflowLockCount) {
ProcessReflowCommands(PR_FALSE);
}
return NS_OK;
}
NS_IMETHODIMP
PresShell::BeginBatchingReflows()
{
@ -2422,12 +2435,6 @@ PresShell::GetReflowBatchingStatus(PRBool* aIsBatching)
return NS_OK;
}
NS_IMETHODIMP
PresShell::FlushPendingNotifications()
{
return ProcessReflowCommands(PR_FALSE);
}
NS_IMETHODIMP
PresShell::ContentChanged(nsIDocument *aDocument,
nsIContent* aContent,