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

Unified Diff: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.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/xml/parser/XMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
index 5c38a5cf8a10f2ea66bfa5ee2806dfe07d5bf175..7525edd62e16fbe3035566342107cef8a1cda067 100644
--- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -66,9 +66,9 @@
#include "platform/network/ResourceRequest.h"
#include "platform/network/ResourceResponse.h"
#include "platform/weborigin/SecurityOrigin.h"
+#include "wtf/AutoReset.h"
#include "wtf/PtrUtil.h"
#include "wtf/StringExtras.h"
-#include "wtf/TemporaryChange.h"
#include "wtf/Threading.h"
#include "wtf/Vector.h"
#include "wtf/text/UTF8.h"
@@ -870,7 +870,7 @@ void XMLDocumentParser::doWrite(const String& parseString)
// string.
if (parseString.length()) {
XMLDocumentParserScope scope(document());
- TemporaryChange<bool> encodingScope(m_isCurrentlyParsing8BitChunk, parseString.is8Bit());
+ AutoReset<bool> encodingScope(&m_isCurrentlyParsing8BitChunk, parseString.is8Bit());
parseChunk(context->context(), parseString);
// JavaScript (which may be run under the parseChunk callstack) may

Powered by Google App Engine
This is Rietveld 408576698