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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.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/LayoutSVGResourceContainer.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
index d7ca9bd4e47967f2706be861927210e7c595504e..0440c7541a3faa96501c3ecc96a759425166c1d8 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -27,7 +27,7 @@
#include "core/layout/svg/SVGResourcesCache.h"
#include "core/paint/PaintLayer.h"
-#include "wtf/TemporaryChange.h"
+#include "wtf/AutoReset.h"
namespace blink {
@@ -59,7 +59,7 @@ void LayoutSVGResourceContainer::layout()
if (m_isInLayout)
return;
- TemporaryChange<bool> inLayoutChange(m_isInLayout, true);
+ AutoReset<bool> inLayoutChange(&m_isInLayout, true);
LayoutSVGHiddenContainer::layout();

Powered by Google App Engine
This is Rietveld 408576698