Skip to content

Commit

Permalink
Bug 1608931 - followup: fix subtle unintended behavior change.
Browse files Browse the repository at this point in the history
This can fire in some tests that take over the refresh driver via script.

Differential Revision: https://phabricator.services.mozilla.com/D60620
  • Loading branch information
emilio committed Jan 22, 2020
1 parent 4a8ab77 commit 8041397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layout/base/nsRefreshDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8041397

Please sign in to comment.