summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/html/HTMLTableCellElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/HTMLTableCellElement.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/html/HTMLTableCellElement.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/HTMLTableCellElement.h b/chromium/third_party/WebKit/Source/core/html/HTMLTableCellElement.h
index 8c22cccfb38..55cbd5f4b6b 100644
--- a/chromium/third_party/WebKit/Source/core/html/HTMLTableCellElement.h
+++ b/chromium/third_party/WebKit/Source/core/html/HTMLTableCellElement.h
@@ -32,7 +32,7 @@ namespace WebCore {
class HTMLTableCellElement FINAL : public HTMLTablePartElement {
public:
- static PassRefPtr<HTMLTableCellElement> create(const QualifiedName&, Document&);
+ DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLTableCellElement);
int cellIndex() const;
@@ -59,16 +59,21 @@ private:
virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERRIDE;
virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
-
- virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
+ virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE;
+ virtual const QualifiedName& subResourceAttributeName() const OVERRIDE;
};
-inline bool isHTMLTableCellElement(const Node& node)
+inline bool isHTMLTableCellElement(const Element& element)
+{
+ return element.hasTagName(HTMLNames::tdTag) || element.hasTagName(HTMLNames::thTag);
+}
+
+inline bool isHTMLTableCellElement(const HTMLElement& element)
{
- return node.hasTagName(HTMLNames::tdTag) || node.hasTagName(HTMLNames::thTag);
+ return element.hasLocalName(HTMLNames::tdTag) || element.hasLocalName(HTMLNames::thTag);
}
-DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement);
+DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement);
} // namespace