Bug 1442063 - Don't call FlushRendering() after we reached the state of STATE_WAITING_TO_FINISH. r=dbaron

Once we reached the state of STATE_WAITING_TO_FINISH, we just need to wait for
the final MozAfterPaint which is corresponding to flushRendering() after
"reftest-wait" removal.

MozReview-Commit-ID: EJxDYUnqbmr

--HG--
extra : rebase_source : fdb5c30142def4c0138bc6af2c510d85f30ed7f3
This commit is contained in:
Hiroyuki Ikezoe 2018-03-09 15:16:52 +09:00
Родитель 2cfcd65214
Коммит b630dc38b3
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -582,7 +582,11 @@ function WaitForTestEnd(contentRootElement, inPrintMode, spellCheckedElements) {
return;
}
FlushRendering();
// We don't need to flush styles any more when we are in the state
// after reftest-wait has removed.
if (state != STATE_WAITING_TO_FINISH) {
FlushRendering();
}
switch (state) {
case STATE_WAITING_TO_FIRE_INVALIDATE_EVENT: {