Bug 617512. Part 10: Don't wait for pending paints to flush in crashtests. r=dbaron

This commit is contained in:
Robert O'Callahan 2010-12-20 14:37:43 +13:00
Родитель f7da8bd2c2
Коммит 77ca493695
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -944,7 +944,9 @@ function shouldWaitForExplicitPaintWaiters() {
} }
function shouldWaitForPendingPaints() { function shouldWaitForPendingPaints() {
return gWindowUtils.isMozAfterPaintPending; // if gCurrentCanvas is null, we're not taking snapshots so there is
// no need to wait for pending paints to be flushed.
return gCurrentCanvas && gWindowUtils.isMozAfterPaintPending;
} }
function shouldWaitForReftestWaitRemoval() { function shouldWaitForReftestWaitRemoval() {