| 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);
|
| }
|
|
|
|
|