Bug 1608931 - followup: fix subtle unintended behavior change.

This can fire in some tests that take over the refresh driver via script.

Differential Revision: https://phabricator.services.mozilla.com/D60620

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2020-01-22 01:13:15 +00:00
Родитель cf6728cdd2
Коммит 5ae32b1e36
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -1913,7 +1913,8 @@ void nsRefreshDriver::Tick(VsyncId aId, TimeStamp aNowTime) {
mResizeSuppressed = false;
auto restoreInRefresh = MakeScopeExit([&] { mInRefresh = false; });
bool oldInRefresh = mInRefresh;
auto restoreInRefresh = MakeScopeExit([&] { mInRefresh = oldInRefresh; });
mInRefresh = true;
AutoRestore<TimeStamp> restoreTickStart(mTickStart);