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/HTMLTableCellElement.h | 45 +++++++++++++++--------------- 1 file changed, 23 insertions(+), 22 deletions(-) (limited to 'Source/WebCore/html/HTMLTableCellElement.h') diff --git a/Source/WebCore/html/HTMLTableCellElement.h b/Source/WebCore/html/HTMLTableCellElement.h index 125eba56f..d93997cb1 100644 --- a/Source/WebCore/html/HTMLTableCellElement.h +++ b/Source/WebCore/html/HTMLTableCellElement.h @@ -23,8 +23,7 @@ * */ -#ifndef HTMLTableCellElement_h -#define HTMLTableCellElement_h +#pragma once #include "HTMLTablePartElement.h" @@ -32,40 +31,42 @@ namespace WebCore { class HTMLTableCellElement final : public HTMLTablePartElement { public: - static PassRefPtr create(const QualifiedName&, Document&); + static Ref create(const QualifiedName&, Document&); - int cellIndex() const; - int colSpan() const; - int rowSpan() const; + WEBCORE_EXPORT int cellIndex() const; + unsigned colSpan() const; + WEBCORE_EXPORT unsigned colSpanForBindings() const; + unsigned rowSpan() const; + WEBCORE_EXPORT unsigned rowSpanForBindings() const; void setCellIndex(int); - void setColSpan(int); - void setRowSpan(int); + WEBCORE_EXPORT void setColSpanForBindings(unsigned); + WEBCORE_EXPORT void setRowSpanForBindings(unsigned); String abbr() const; String axis() const; String headers() const; - String scope() const; + WEBCORE_EXPORT const AtomicString& scope() const; + WEBCORE_EXPORT void setScope(const AtomicString&); - HTMLTableCellElement* cellAbove() 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; + void parseAttribute(const QualifiedName&, const AtomicString&) override; + bool isPresentationAttribute(const QualifiedName&) const override; + void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override; + const StyleProperties* additionalPresentationAttributeStyle() const override; - virtual bool isURLAttribute(const Attribute&) const override; + bool isURLAttribute(const Attribute&) const override; - virtual void addSubresourceAttributeURLs(ListHashSet&) const override; + void addSubresourceAttributeURLs(ListHashSet&) const override; }; -void isHTMLTableCellElement(const HTMLTableCellElement&); // Catch unnecessary runtime check of type known at compile time. -inline bool isHTMLTableCellElement(const Node& node) { return node.hasTagName(HTMLNames::tdTag) || node.hasTagName(HTMLNames::thTag); } -NODE_TYPE_CASTS(HTMLTableCellElement) +} // namespace WebCore -} // namespace - -#endif +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(node) && isType(downcast(node)); } +SPECIALIZE_TYPE_TRAITS_END() -- cgit v1.2.1