Index: Source/core/html/shadow/HTMLShadowElement.h |
diff --git a/Source/core/html/shadow/HTMLShadowElement.h b/Source/core/html/shadow/HTMLShadowElement.h |
index b9943bd3364e6dfd5719bfd1d49db613c0e63052..53ca8f688c4e1dde2558ccaa2ccf45d5f54fed84 100644 |
--- a/Source/core/html/shadow/HTMLShadowElement.h |
+++ b/Source/core/html/shadow/HTMLShadowElement.h |
@@ -49,23 +49,18 @@ private: |
virtual InsertionNotificationRequest insertedInto(ContainerNode* insertionPoint) OVERRIDE; |
}; |
-inline bool isHTMLShadowElement(const Node* node) |
+inline bool isHTMLShadowElement(const Node& node) |
tkent
2013/10/24 01:22:32
Ditto.
|
{ |
- ASSERT(node); |
- return node->hasTagName(HTMLNames::shadowTag); |
+ return node.hasTagName(HTMLNames::shadowTag); |
} |
-inline HTMLShadowElement* toHTMLShadowElement(Node* node) |
+inline bool isHTMLShadowElement(const Node* node) |
{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLShadowElement(node)); |
- return static_cast<HTMLShadowElement*>(node); |
+ ASSERT(node); |
+ return node->hasTagName(HTMLNames::shadowTag); |
} |
-inline const HTMLShadowElement* toHTMLShadowElement(const Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLShadowElement(node)); |
- return static_cast<const HTMLShadowElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLShadowElement); |
inline bool isActiveShadowInsertionPoint(const Node* node) |
{ |