HTMLTableCellElement.h [plain text]
#ifndef HTMLTableCellElement_h
#define HTMLTableCellElement_h
#include "HTMLTablePartElement.h"
namespace WebCore {
class HTMLTableCellElement final : public HTMLTablePartElement {
public:
static Ref<HTMLTableCellElement> create(const QualifiedName&, Document&);
int cellIndex() const;
int colSpan() const;
int rowSpan() const;
void setCellIndex(int);
void setColSpan(int);
void setRowSpan(int);
String abbr() const;
String axis() const;
String headers() const;
String scope() const;
WEBCORE_EXPORT 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&, MutableStyleProperties&) override;
virtual const StyleProperties* additionalPresentationAttributeStyle() override;
virtual bool isURLAttribute(const Attribute&) const override;
virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const override;
};
}
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::HTMLTableCellElement)
static bool isType(const WebCore::HTMLElement& element) { return element.hasTagName(WebCore::HTMLNames::tdTag) || element.hasTagName(WebCore::HTMLNames::thTag); }
static bool isType(const WebCore::Node& node) { return is<WebCore::HTMLElement>(node) && isType(downcast<WebCore::HTMLElement>(node)); }
SPECIALIZE_TYPE_TRAITS_END()
#endif