diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/HTMLTableSectionElement.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/html/HTMLTableSectionElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLTableSectionElement.h | 39 |
1 files changed, 11 insertions, 28 deletions
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<HTMLTableSectionElement> create(const QualifiedName&, Document&); + static Ref<HTMLTableSectionElement> create(const QualifiedName&, Document&); - PassRefPtr<HTMLElement> insertRow(int index, ExceptionCode&); - void deleteRow(int index, ExceptionCode&); + WEBCORE_EXPORT ExceptionOr<Ref<HTMLElement>> insertRow(int index = -1); + WEBCORE_EXPORT ExceptionOr<void> 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<HTMLCollection> rows(); + WEBCORE_EXPORT Ref<HTMLCollection> 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<WebCore::HTMLElement>(node) && isType(downcast<WebCore::HTMLElement>(node)); } +SPECIALIZE_TYPE_TRAITS_END() |