#ifndef HTMLTableColElement_h
#define HTMLTableColElement_h
#include "core/html/HTMLTablePartElement.h"
namespace WebCore {
class HTMLTableColElement FINAL : public HTMLTablePartElement {
public:
static PassRefPtr<HTMLTableColElement> create(const QualifiedName& tagName, Document&);
int span() const { return m_span; }
void setSpan(int);
const AtomicString& width() const;
private:
HTMLTableColElement(const QualifiedName& tagName, 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;
int m_span;
};
inline bool isHTMLTableColElement(const Element& element)
{
return element.hasTagName(HTMLNames::colTag) || element.hasTagName(HTMLNames::colgroupTag);
}
inline bool isHTMLTableColElement(const HTMLElement& element)
{
return element.hasLocalName(HTMLNames::colTag) || element.hasLocalName(HTMLNames::colgroupTag);
}
DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableColElement);
}
#endif