Don't flush out reflows if we have painting suppressed and something else in

our viewmanager tree is painting.  Bug 282764, r+sr=roc
This commit is contained in:
bzbarsky%mit.edu 2005-02-25 04:03:13 +00:00
Родитель 8d0f902991
Коммит 79388227de
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -6115,8 +6115,10 @@ PresShell::IsVisible()
NS_IMETHODIMP_(void)
PresShell::WillPaint()
{
// Don't reenter reflow and don't reflow during frame construction
if (mIsReflowing || mChangeNestCount) {
// Don't reenter reflow and don't reflow during frame construction. Also
// don't bother reflowing if some viewmanager in our tree is painting while
// we still have painting suppressed.
if (mIsReflowing || mChangeNestCount || mPaintingSuppressed) {
return;
}