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

Unified Diff: third_party/WebKit/Source/core/page/PageAnimator.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/PageAnimator.cpp
diff --git a/third_party/WebKit/Source/core/page/PageAnimator.cpp b/third_party/WebKit/Source/core/page/PageAnimator.cpp
index c00233ce11995c54fd9e33636cdd0ad9ed1f6aad..32db0bc9a5bbe05f98ef15faec95a0a1a1e3ad81 100644
--- a/third_party/WebKit/Source/core/page/PageAnimator.cpp
+++ b/third_party/WebKit/Source/core/page/PageAnimator.cpp
@@ -11,6 +11,7 @@
#include "core/page/Page.h"
#include "core/svg/SVGDocumentExtensions.h"
#include "platform/Logging.h"
+#include "wtf/AutoReset.h"
namespace blink {
@@ -33,7 +34,7 @@ DEFINE_TRACE(PageAnimator)
void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
{
- TemporaryChange<bool> servicing(m_servicingAnimations, true);
+ AutoReset<bool> servicing(&m_servicingAnimations, true);
clock().updateTime(monotonicAnimationStartTime);
HeapVector<Member<Document>, 32> documents;
@@ -81,7 +82,7 @@ void PageAnimator::scheduleVisualUpdate(LocalFrame* frame)
void PageAnimator::updateAllLifecyclePhases(LocalFrame& rootFrame)
{
FrameView* view = rootFrame.view();
- TemporaryChange<bool> servicing(m_updatingLayoutAndStyleForPainting, true);
+ AutoReset<bool> servicing(&m_updatingLayoutAndStyleForPainting, true);
view->updateAllLifecyclePhases();
}
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | third_party/WebKit/Source/core/page/PageVisibilityNotifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698