| 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
|
|
|
|
|