#ifndef HTMLTableCellElement_h
#define HTMLTableCellElement_h
#include "core/html/HTMLTablePartElement.h"
namespace WebCore {
class HTMLTableCellElement FINAL : public HTMLTablePartElement {
public:
static PassRefPtr<HTMLTableCellElement> create(const QualifiedName&, Document&);
int cellIndex() const;
int colSpan() const;
int rowSpan() const;
void setCellIndex(int);
const AtomicString& abbr() const;
const AtomicString& axis() const;
void setColSpan(int);
const AtomicString& headers() const;
void setRowSpan(int);
const AtomicString& scope() const;
HTMLTableCellElement* cellAbove() const;
private:
HTMLTableCellElement(const QualifiedName&, Document&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) OVERRIDE;
virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERRIDE;
virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE;
virtual const QualifiedName& subResourceAttributeName() const OVERRIDE;
};
inline bool isHTMLTableCellElement(const Element& element)
{
return element.hasTagName(HTMLNames::tdTag) || element.hasTagName(HTMLNames::thTag);
}
inline bool isHTMLTableCellElement(const HTMLElement& element)
{
return element.hasLocalName(HTMLNames::tdTag) || element.hasLocalName(HTMLNames::thTag);
}
DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement);
}
#endif