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

Unified Diff: third_party/WebKit/public/web/WebNode.h

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix 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
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebNode.h
diff --git a/third_party/WebKit/public/web/WebNode.h b/third_party/WebKit/public/web/WebNode.h
index 35fe80a9b9b36a00fcffbe1a5de0a8ce6bea1627..061b4305b60ab6086dd611a63665cd1336fed992 100644
--- a/third_party/WebKit/public/web/WebNode.h
+++ b/third_party/WebKit/public/web/WebNode.h
@@ -139,20 +139,20 @@ class WebNode {
BLINK_EXPORT const type WebNode::toConst<type>() const;
#if BLINK_IMPLEMENTATION
-#define DEFINE_WEB_NODE_TYPE_CASTS(type, predicate) \
- template <> \
- type WebNode::to<type>() { \
- ASSERT_WITH_SECURITY_IMPLICATION(isNull() || (predicate)); \
- type result; \
- result.WebNode::assign(*this); \
- return result; \
- } \
- template <> \
- const type WebNode::toConst<type>() const { \
- ASSERT_WITH_SECURITY_IMPLICATION(isNull() || (predicate)); \
- type result; \
- result.WebNode::assign(*this); \
- return result; \
+#define DEFINE_WEB_NODE_TYPE_CASTS(type, predicate) \
+ template <> \
+ type WebNode::to<type>() { \
+ SECURITY_DCHECK(isNull() || (predicate)); \
+ type result; \
+ result.WebNode::assign(*this); \
+ return result; \
+ } \
+ template <> \
+ const type WebNode::toConst<type>() const { \
+ SECURITY_DCHECK(isNull() || (predicate)); \
+ type result; \
+ result.WebNode::assign(*this); \
+ return result; \
}
#endif
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698