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

Unified Diff: third_party/WebKit/Source/core/css/SelectorChecker.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/css/SelectorChecker.cpp
diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
index 382ac4e1523df4ed9ddcbd294ed51a5105a20a88..699c10bb79fdae0a85c62bf2eaf20b8d0a8a5d09 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
@@ -58,6 +58,7 @@
#include "core/style/ComputedStyle.h"
#include "platform/scroll/ScrollableArea.h"
#include "platform/scroll/ScrollbarTheme.h"
+#include "wtf/AutoReset.h"
namespace blink {
@@ -219,7 +220,7 @@ SelectorChecker::Match SelectorChecker::matchSelector(const SelectorCheckingCont
if (context.pseudoId != PseudoIdNone && context.pseudoId != result.dynamicPseudo)
return SelectorFailsCompletely;
- TemporaryChange<PseudoId> dynamicPseudoScope(result.dynamicPseudo, PseudoIdNone);
+ AutoReset<PseudoId> dynamicPseudoScope(&result.dynamicPseudo, PseudoIdNone);
match = matchForRelation(context, result);
} else {
match = matchForSubSelector(context, result);

Powered by Google App Engine
This is Rietveld 408576698