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

Unified Diff: Source/core/editing/EditorCommand.cpp

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/dom/TreeShared.h ('k') | Source/core/editing/TextIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/EditorCommand.cpp
diff --git a/Source/core/editing/EditorCommand.cpp b/Source/core/editing/EditorCommand.cpp
index b88e577a4258ced1f67923b988f928e3325d80c1..73cb0ac217122b9bfcaaa9ccd637c6d57469f01f 100644
--- a/Source/core/editing/EditorCommand.cpp
+++ b/Source/core/editing/EditorCommand.cpp
@@ -1626,14 +1626,14 @@ static const CommandMap& createCommandMap()
// Unbookmark (not supported)
CommandMap& commandMap = *new CommandMap;
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
HashSet<int> idSet;
#endif
for (size_t i = 0; i < WTF_ARRAY_LENGTH(commands); ++i) {
const CommandEntry& command = commands[i];
ASSERT(!commandMap.get(command.name));
commandMap.set(command.name, &command.command);
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
ASSERT(!idSet.contains(command.command.idForUserMetrics));
idSet.add(command.command.idForUserMetrics);
#endif
« no previous file with comments | « Source/core/dom/TreeShared.h ('k') | Source/core/editing/TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698