Index: Source/core/html/HTMLUnknownElement.h |
diff --git a/Source/core/html/HTMLUnknownElement.h b/Source/core/html/HTMLUnknownElement.h |
index d35aa7111f140d90f6c3be1a33c85ad0e0c616a2..f3c5397e69d4912c24b36c3e82a3f4f8f93311da 100644 |
--- a/Source/core/html/HTMLUnknownElement.h |
+++ b/Source/core/html/HTMLUnknownElement.h |
@@ -51,12 +51,17 @@ private: |
} |
}; |
-inline bool isHTMLUnknownElement(const Node& node) |
+inline bool isHTMLUnknownElement(const Element& element) |
{ |
- return node.isElementNode() && toHTMLElement(node).isHTMLUnknownElement(); |
+ return element.isHTMLElement() && toHTMLElement(element).isHTMLUnknownElement(); |
} |
-DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLUnknownElement); |
+inline bool isHTMLUnknownElement(const HTMLElement& element) |
+{ |
+ return element.isHTMLUnknownElement(); |
+} |
+ |
+DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLUnknownElement); |
} // namespace |