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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

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/frame/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index 776e1b9f986d860f74bf66f6fc4eb81edb3410ea..7e5be60fe9195575dd4c54ea41132eb19df2d506 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -47,10 +47,10 @@
#include "public/platform/WebDisplayMode.h"
#include "public/platform/WebRect.h"
#include "wtf/Allocator.h"
+#include "wtf/AutoReset.h"
#include "wtf/Forward.h"
#include "wtf/HashSet.h"
#include "wtf/ListHashSet.h"
-#include "wtf/TemporaryChange.h"
#include "wtf/text/WTFString.h"
#include <memory>
@@ -652,10 +652,10 @@ protected:
STACK_ALLOCATED();
public:
explicit InUpdateScrollbarsScope(FrameView* view)
- : m_scope(view->m_inUpdateScrollbars, true)
+ : m_scope(&view->m_inUpdateScrollbars, true)
{ }
private:
- TemporaryChange<bool> m_scope;
+ AutoReset<bool> m_scope;
};
// Only for LayoutPart to traverse into sub frames during paint invalidation.
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReader.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698