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

Unified Diff: third_party/WebKit/Source/core/events/EventPath.cpp

Issue 2274403002: Replace two ASSERT()s for HashMap iterators with DCHECK_NE()s. (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | third_party/WebKit/Source/core/html/forms/RadioButtonGroupScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/events/EventPath.cpp
diff --git a/third_party/WebKit/Source/core/events/EventPath.cpp b/third_party/WebKit/Source/core/events/EventPath.cpp
index 5347b62cf18070216d145f7fc49bd055883a5330..67bcb31871732b7e1fc5b34cf7077a71ac6fc35a 100644
--- a/third_party/WebKit/Source/core/events/EventPath.cpp
+++ b/third_party/WebKit/Source/core/events/EventPath.cpp
@@ -186,8 +186,7 @@ void EventPath::calculateTreeOrderAndSetNearestAncestorClosedTree()
rootTree = treeScopeEventContext.get();
continue;
}
- // TODO(tkent): Add a stream printer for HashMap::iterator.
- ASSERT(treeScopeEventContextMap.find(parent) != treeScopeEventContextMap.end());
+ DCHECK_NE(treeScopeEventContextMap.find(parent), treeScopeEventContextMap.end());
treeScopeEventContextMap.find(parent)->value->addChild(*treeScopeEventContext.get());
}
DCHECK(rootTree);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/RadioButtonGroupScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698