Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: third_party/WebKit/Source/core/page/PageVisibilityNotifier.cpp

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TemporaryChange -> AutoReset Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/PageVisibilityNotifier.cpp
diff --git a/third_party/WebKit/Source/core/page/PageVisibilityNotifier.cpp b/third_party/WebKit/Source/core/page/PageVisibilityNotifier.cpp
index eb04fa716c40093bc5fe4a584cc3a52d465e2439..84942f4446de21e156df8a440787e835544d6960 100644
--- a/third_party/WebKit/Source/core/page/PageVisibilityNotifier.cpp
+++ b/third_party/WebKit/Source/core/page/PageVisibilityNotifier.cpp
@@ -27,12 +27,13 @@
#include "core/page/PageVisibilityNotifier.h"
#include "core/page/PageVisibilityObserver.h"
+#include "wtf/AutoReset.h"
namespace blink {
void PageVisibilityNotifier::notifyPageVisibilityChanged()
{
- TemporaryChange<IterationState> scope(m_iterationState, AllowingNone);
+ AutoReset<IterationState> scope(&m_iterationState, AllowingNone);
for (PageVisibilityObserver* observer : m_observers)
observer->pageVisibilityChanged();
}
« no previous file with comments | « third_party/WebKit/Source/core/page/PageAnimator.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698