From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/HTMLTableSectionElement.h | 39 ++++++++------------------- 1 file changed, 11 insertions(+), 28 deletions(-) (limited to 'Source/WebCore/html/HTMLTableSectionElement.h') diff --git a/Source/WebCore/html/HTMLTableSectionElement.h b/Source/WebCore/html/HTMLTableSectionElement.h index 7825e6864..609ce76f4 100644 --- a/Source/WebCore/html/HTMLTableSectionElement.h +++ b/Source/WebCore/html/HTMLTableSectionElement.h @@ -23,8 +23,7 @@ * */ -#ifndef HTMLTableSectionElement_h -#define HTMLTableSectionElement_h +#pragma once #include "HTMLNames.h" #include "HTMLTablePartElement.h" @@ -33,40 +32,24 @@ namespace WebCore { class HTMLTableSectionElement final : public HTMLTablePartElement { public: - static PassRefPtr create(const QualifiedName&, Document&); + static Ref create(const QualifiedName&, Document&); - PassRefPtr insertRow(int index, ExceptionCode&); - void deleteRow(int index, ExceptionCode&); + WEBCORE_EXPORT ExceptionOr> insertRow(int index = -1); + WEBCORE_EXPORT ExceptionOr deleteRow(int index); int numRows() const; - String align() const; - void setAlign(const String&); - - String ch() const; - void setCh(const String&); - - String chOff() const; - void setChOff(const String&); - - String vAlign() const; - void setVAlign(const String&); - - PassRefPtr rows(); + WEBCORE_EXPORT Ref rows(); private: HTMLTableSectionElement(const QualifiedName& tagName, Document&); - virtual const StyleProperties* additionalPresentationAttributeStyle() override; + const StyleProperties* additionalPresentationAttributeStyle() const final; }; -inline bool isHTMLTableSectionElement(const Node& node) -{ - return node.hasTagName(HTMLNames::theadTag) || node.hasTagName(HTMLNames::tfootTag) || node.hasTagName(HTMLNames::tbodyTag); -} - -NODE_TYPE_CASTS(HTMLTableSectionElement) - -} //namespace +} // namespace WebCore -#endif +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(node) && isType(downcast(node)); } +SPECIALIZE_TYPE_TRAITS_END() -- cgit v1.2.1