зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1772019 - Wait for PresShell to be initialized before doing WillRefresh tick. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D147812
This commit is contained in:
Родитель
64e35e6e1a
Коммит
766f8978fc
|
@ -636,10 +636,10 @@ void NotificationController::WillRefresh(mozilla::TimeStamp aTime) {
|
|||
if (!mDocument) return;
|
||||
|
||||
// Wait until an update, we have started, or an interruptible reflow is
|
||||
// finished.
|
||||
// finished, and the PresShell has initialized.
|
||||
if (mObservingState == eRefreshProcessing ||
|
||||
mObservingState == eRefreshProcessingForUpdate ||
|
||||
mPresShell->IsReflowInterrupted()) {
|
||||
mPresShell->IsReflowInterrupted() || !mPresShell->DidInitialize()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче