Index: Source/core/html/HTMLTableColElement.h |
diff --git a/Source/core/html/HTMLTableColElement.h b/Source/core/html/HTMLTableColElement.h |
index be4069e1a931fbbc0dba687e935ac3904c9b739d..9c24f5b25b06dedd050f0451f6354651d784f4bc 100644 |
--- a/Source/core/html/HTMLTableColElement.h |
+++ b/Source/core/html/HTMLTableColElement.h |
@@ -50,12 +50,17 @@ private: |
int m_span; |
}; |
-inline bool isHTMLTableColElement(const Node& node) |
+inline bool isHTMLTableColElement(const Element& element) |
{ |
- return node.hasTagName(HTMLNames::colTag) || node.hasTagName(HTMLNames::colgroupTag); |
+ return element.hasTagName(HTMLNames::colTag) || element.hasTagName(HTMLNames::colgroupTag); |
} |
-DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableColElement); |
+inline bool isHTMLTableColElement(const HTMLElement& element) |
+{ |
+ return element.hasLocalName(HTMLNames::colTag) || element.hasLocalName(HTMLNames::colgroupTag); |
+} |
+ |
+DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableColElement); |
} // namespace WebCore |