зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1255459 - Use AutoRestore in ObservedDocShell::PopMarkers. r=smaug
MozReview-Commit-ID: IbPoXdjfbQu
This commit is contained in:
Родитель
70b192860d
Коммит
b03cdce369
|
@ -10,7 +10,7 @@
|
|||
#include "LayerTimelineMarker.h"
|
||||
#include "MainThreadUtils.h"
|
||||
#include "mozilla/Move.h"
|
||||
#include "mozilla/ScopeExit.h"
|
||||
#include "mozilla/AutoRestore.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
|
@ -65,8 +65,8 @@ ObservedDocShell::PopMarkers(JSContext* aCx,
|
|||
MutexAutoLock lock(GetLock()); // for `mOffTheMainThreadTimelineMarkers`.
|
||||
|
||||
MOZ_RELEASE_ASSERT(!mPopping);
|
||||
AutoRestore<bool> resetPopping(mPopping);
|
||||
mPopping = true;
|
||||
auto resetPopping = MakeScopeExit([&] { mPopping = false; });
|
||||
|
||||
// First, move all of our markers into a single array. We'll chose
|
||||
// the `mTimelineMarkers` store because that's where we expect most of
|
||||
|
|
Загрузка…
Ссылка в новой задаче