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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTagCollection.h

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. 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
Index: third_party/WebKit/Source/core/html/HTMLTagCollection.h
diff --git a/third_party/WebKit/Source/core/html/HTMLTagCollection.h b/third_party/WebKit/Source/core/html/HTMLTagCollection.h
index 9cb86923fa3b96dcfdd249e3e0263be95e05954a..cf714772f4bdb07a7953cdc2fb8e3b32b8ecf230 100644
--- a/third_party/WebKit/Source/core/html/HTMLTagCollection.h
+++ b/third_party/WebKit/Source/core/html/HTMLTagCollection.h
@@ -35,7 +35,7 @@ class HTMLTagCollection final : public TagCollection {
public:
static HTMLTagCollection* create(ContainerNode& rootNode, CollectionType type, const AtomicString& localName)
{
- ASSERT_UNUSED(type, type == HTMLTagCollectionType);
+ DCHECK_EQ(type, HTMLTagCollectionType);
return new HTMLTagCollection(rootNode, localName);
}
@@ -57,7 +57,7 @@ inline bool HTMLTagCollection::elementMatches(const Element& testElement) const
if (localName != testElement.localName())
return false;
}
- ASSERT(m_namespaceURI == starAtom);
+ DCHECK_EQ(m_namespaceURI, starAtom);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698