HTMLTableCellElement.h [plain text]
#ifndef HTMLTableCellElement_h
#define HTMLTableCellElement_h
#include "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);
String abbr() const;
String axis() const;
void setColSpan(int);
String headers() const;
void setRowSpan(int);
String 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 void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
};
HTMLTableCellElement* toHTMLTableCellElement(Node* node);
const HTMLTableCellElement* toHTMLTableCellElement(const Node* node);
void toHTMLTableCellElement(const HTMLTableCellElement*);
#ifdef NDEBUG
inline HTMLTableCellElement* toHTMLTableCellElement(Node* node)
{
return static_cast<HTMLTableCellElement*>(node);
}
inline const HTMLTableCellElement* toHTMLTableCellElement(const Node* node)
{
return static_cast<const HTMLTableCellElement*>(node);
}
#endif
}
#endif