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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.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/layout/svg/LayoutSVGResourceMarker.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
index 06832a7f817cf23db3bcb9c0dbdbfc8b58b4ab91..e02d2efb339af643d589bb73d6795de3ba2dbfc9 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
@@ -22,7 +22,7 @@
#include "core/layout/svg/LayoutSVGResourceMarker.h"
#include "core/layout/svg/SVGLayoutSupport.h"
-#include "wtf/TemporaryChange.h"
+#include "wtf/AutoReset.h"
namespace blink {
@@ -41,7 +41,7 @@ void LayoutSVGResourceMarker::layout()
if (m_isInLayout)
return;
- TemporaryChange<bool> inLayoutChange(m_isInLayout, true);
+ AutoReset<bool> inLayoutChange(&m_isInLayout, true);
// LayoutSVGHiddenContainer overwrites layout(). We need the
// layouting of LayoutSVGContainer for calculating local

Powered by Google App Engine
This is Rietveld 408576698