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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 0e81902dd283bc0208d4d6f4d4747d09b0979088..6c62e6b1cb6c8b347cfb2d5959a019ceed59b8fb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -46,6 +46,7 @@
#include "platform/graphics/PaintInvalidationReason.h"
#include "platform/graphics/paint/DisplayItemClient.h"
#include "platform/transforms/TransformationMatrix.h"
+#include "wtf/AutoReset.h"
namespace blink {
@@ -1963,7 +1964,7 @@ public:
static bool canModifyLayoutTreeStateInAnyState();
private:
- TemporaryChange<bool> m_disabler;
+ AutoReset<bool> m_disabler;
};
// FIXME: We should not allow paint invalidation out of paint invalidation state. crbug.com/457415
@@ -1974,7 +1975,7 @@ class DisablePaintInvalidationStateAsserts {
public:
DisablePaintInvalidationStateAsserts();
private:
- TemporaryChange<bool> m_disabler;
+ AutoReset<bool> m_disabler;
};
// Allow equality comparisons of LayoutObjects by reference or pointer, interchangeably.
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698