| Index: sky/engine/core/html/HTMLElement.h
|
| diff --git a/sky/engine/core/html/HTMLElement.h b/sky/engine/core/html/HTMLElement.h
|
| index f8d0db8172606ec7186d63d404b2aefabbc44964..3b07bc6f23fa69fcacb474766f4ff5eeb2a5c068 100644
|
| --- a/sky/engine/core/html/HTMLElement.h
|
| +++ b/sky/engine/core/html/HTMLElement.h
|
| @@ -56,8 +56,7 @@ inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
|
| #define DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \
|
| inline bool is##thisType(const thisType* element); \
|
| inline bool is##thisType(const thisType& element); \
|
| - inline bool is##thisType(const HTMLElement* element) { return element && is##thisType(*element); } \
|
| - inline bool is##thisType(const Node& node) { return node.isHTMLElement() ? is##thisType(toHTMLElement(node)) : false; } \
|
| + inline bool is##thisType(const Node& node) { return node.isElementNode() ? is##thisType(toElement(node)) : false; } \
|
| inline bool is##thisType(const Node* node) { return node && is##thisType(*node); } \
|
| inline bool is##thisType(const Element* element) { return element && is##thisType(*element); } \
|
| template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { return is##thisType(node.get()); } \
|
|
|