зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1334735 - Part 3: Really set mNeedLayoutFlush when skipping suppressed interruptible reflows. r=bz
MozReview-Commit-ID: AKL9LShifvI
This commit is contained in:
Родитель
71d4bbc431
Коммит
d9afbf0240
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче