Index: Source/core/dom/Element.h |
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h |
index e4a49bc025def86a4edbcab79a95eda96eabf97a..d127439615bbaeaea20ea17a48c56aad6a41375d 100644 |
--- a/Source/core/dom/Element.h |
+++ b/Source/core/dom/Element.h |
@@ -668,6 +668,9 @@ private: |
}; |
DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); |
+template <typename T> bool isElementOfType(const Element&); |
+template <typename T> inline bool isElementOfType(const Node& node) { return node.isElementNode() && isElementOfType<const T>(toElement(node)); } |
+template <> inline bool isElementOfType<const Element>(const Element&) { return true; } |
inline bool isDisabledFormControl(const Node* node) |
{ |