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

Unified Diff: third_party/WebKit/Source/core/dom/NodeListsNodeData.h

Issue 2401523002: Replace ASSERT family with DCHECK and so on in core/dom/. (Closed)
Patch Set: Created 4 years, 2 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/dom/NodeListsNodeData.h
diff --git a/third_party/WebKit/Source/core/dom/NodeListsNodeData.h b/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
index 2787b50445e3c48e57a6a5630aec645d70569bd1..b687f617f89ec354f8a3b183a0e26dc5aab37109 100644
--- a/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
+++ b/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
@@ -38,8 +38,7 @@ class NodeListsNodeData final : public GarbageCollected<NodeListsNodeData> {
public:
ChildNodeList* childNodeList(ContainerNode& node) {
- ASSERT_UNUSED(
- node, !m_childNodeList || node == m_childNodeList->virtualOwnerNode());
+ DCHECK(!m_childNodeList || node == m_childNodeList->virtualOwnerNode());
return toChildNodeList(m_childNodeList);
}
@@ -208,7 +207,7 @@ inline Collection* ContainerNode::ensureCachedCollection(
CollectionType type,
const AtomicString& namespaceURI,
const AtomicString& localName) {
- ASSERT_UNUSED(type, type == TagCollectionType);
+ DCHECK_EQ(type, TagCollectionType);
ThreadState::GCForbiddenScope gcForbidden;
return ensureNodeLists().addCache(*this, namespaceURI, localName);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698