Index: Source/core/html/HTMLTableSectionElement.h |
diff --git a/Source/core/html/HTMLTableSectionElement.h b/Source/core/html/HTMLTableSectionElement.h |
index 4ab3b0b4c7a992bd6105d13cb22a0a372d3afd1e..53cc9137ef1b40e4e87ba79a755b070f964c6302 100644 |
--- a/Source/core/html/HTMLTableSectionElement.h |
+++ b/Source/core/html/HTMLTableSectionElement.h |
@@ -49,12 +49,17 @@ private: |
virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERRIDE; |
}; |
-inline bool isHTMLTableSectionElement(const Node& node) |
+inline bool isHTMLTableSectionElement(const Element& element) |
{ |
- return node.hasTagName(HTMLNames::tbodyTag) || node.hasTagName(HTMLNames::tfootTag) || node.hasTagName(HTMLNames::theadTag); |
+ return element.hasTagName(HTMLNames::tbodyTag) || element.hasTagName(HTMLNames::tfootTag) || element.hasTagName(HTMLNames::theadTag); |
} |
-DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableSectionElement); |
+inline bool isHTMLTableSectionElement(const HTMLElement& element) |
+{ |
+ return element.hasLocalName(HTMLNames::tbodyTag) || element.hasLocalName(HTMLNames::tfootTag) || element.hasLocalName(HTMLNames::theadTag); |
+} |
+ |
+DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableSectionElement); |
} //namespace |