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

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

Issue 2270293002: Replace ASSERT*() with DCHECK*() in core/events/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isUnreachableNode -> checkReachableNode 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 | « third_party/WebKit/Source/core/events/TreeScopeEventContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp
diff --git a/third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp b/third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp
index fbe746560c8875fab63e3c41c779cd9f1f4e14fa..caad189d357ee1576b69cd897869ebea51f27fe1 100644
--- a/third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp
+++ b/third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp
@@ -52,7 +52,9 @@ bool TreeScopeEventContext::isUnclosedTreeOf(const TreeScopeEventContext& other)
return !containingClosedShadowTree()->isDescendantOf(other);
// (4) |this| and |other| must be in exclusive branches.
- ASSERT(other.isExclusivePartOf(*this));
+#if DCHECK_IS_ON()
+ DCHECK(other.isExclusivePartOf(*this));
+#endif
return false;
}
« no previous file with comments | « third_party/WebKit/Source/core/events/TreeScopeEventContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698