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

Unified Diff: third_party/WebKit/Source/core/dom/Element.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/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index b2d3fa405ccf921f7d263d0dbacc59d0aa3705e5..9f47d6e10ce3fcf1c5dcab99cac0f074d698e5d1 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -938,22 +938,22 @@ inline bool isElementOfType<const Element>(const Element&) {
// Type casting.
template <typename T>
inline T& toElement(Node& node) {
- ASSERT_WITH_SECURITY_IMPLICATION(isElementOfType<const T>(node));
+ SECURITY_DCHECK(isElementOfType<const T>(node));
return static_cast<T&>(node);
}
template <typename T>
inline T* toElement(Node* node) {
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isElementOfType<const T>(*node));
+ SECURITY_DCHECK(!node || isElementOfType<const T>(*node));
return static_cast<T*>(node);
}
template <typename T>
inline const T& toElement(const Node& node) {
- ASSERT_WITH_SECURITY_IMPLICATION(isElementOfType<const T>(node));
+ SECURITY_DCHECK(isElementOfType<const T>(node));
return static_cast<const T&>(node);
}
template <typename T>
inline const T* toElement(const Node* node) {
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isElementOfType<const T>(*node));
+ SECURITY_DCHECK(!node || isElementOfType<const T>(*node));
return static_cast<const T*>(node);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentParser.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698