HTMLTableSectionElement.h [plain text]
#pragma once
#include "HTMLNames.h"
#include "HTMLTablePartElement.h"
namespace WebCore {
class HTMLTableSectionElement final : public HTMLTablePartElement {
public:
static Ref<HTMLTableSectionElement> create(const QualifiedName&, Document&);
WEBCORE_EXPORT ExceptionOr<Ref<HTMLElement>> insertRow(int index = -1);
WEBCORE_EXPORT ExceptionOr<void> deleteRow(int index);
int numRows() const;
WEBCORE_EXPORT Ref<HTMLCollection> rows();
private:
HTMLTableSectionElement(const QualifiedName& tagName, Document&);
const StyleProperties* additionalPresentationAttributeStyle() const final;
};
}
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::HTMLTableSectionElement)
static bool isType(const WebCore::HTMLElement& element) { return element.hasTagName(WebCore::HTMLNames::theadTag) || element.hasTagName(WebCore::HTMLNames::tfootTag) || element.hasTagName(WebCore::HTMLNames::tbodyTag); }
static bool isType(const WebCore::Node& node) { return is<WebCore::HTMLElement>(node) && isType(downcast<WebCore::HTMLElement>(node)); }
SPECIALIZE_TYPE_TRAITS_END()