diff options
Diffstat (limited to 'Source/WebCore/html/HTMLTableCellElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLTableCellElement.h | 45 |
1 files changed, 23 insertions, 22 deletions
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<HTMLTableCellElement> create(const QualifiedName&, Document&); + static Ref<HTMLTableCellElement> 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<URL>&) const override; + void addSubresourceAttributeURLs(ListHashSet<URL>&) 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<WebCore::HTMLElement>(node) && isType(downcast<WebCore::HTMLElement>(node)); } +SPECIALIZE_TYPE_TRAITS_END() |