Bug 1334735 - Part 3: Really set mNeedLayoutFlush when skipping suppressed interruptible reflows. r=bz

MozReview-Commit-ID: AKL9LShifvI
This commit is contained in:
Cameron McCormack 2017-02-10 10:42:28 +08:00
Родитель 71d4bbc431
Коммит d9afbf0240
1 изменённых файлов: 5 добавлений и 7 удалений

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

@ -4255,13 +4255,11 @@ PresShell::FlushPendingNotifications(mozilla::ChangesToFlush aFlush)
}
}
if (!didLayoutFlush && !mIsDestroying &&
(flushType >=
(mSuppressInterruptibleReflows ? FlushType::Layout
: FlushType::InterruptibleLayout))) {
// We suppressed this flush due to mSuppressInterruptibleReflows or
// !isSafeToFlush, but now we think we don't need to flush any more.
// Record what's really going on.
if (!didLayoutFlush && flushType >= FlushType::InterruptibleLayout &&
!mIsDestroying) {
// We suppressed this flush either due to it not being safe to flush,
// or due to mSuppressInterruptibleReflows. Either way, the
// mNeedLayoutFlush flag needs to be re-set.
SetNeedLayoutFlush();
}
}