diff options
Diffstat (limited to 'Source/WebCore/html/HTMLTitleElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLTitleElement.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Source/WebCore/html/HTMLTitleElement.h b/Source/WebCore/html/HTMLTitleElement.h index ebe1d3cc5..d0b4a7b87 100644 --- a/Source/WebCore/html/HTMLTitleElement.h +++ b/Source/WebCore/html/HTMLTitleElement.h @@ -19,8 +19,8 @@ * Boston, MA 02110-1301, USA. * */ -#ifndef HTMLTitleElement_h -#define HTMLTitleElement_h + +#pragma once #include "HTMLElement.h" #include "StringWithDirection.h" @@ -29,25 +29,23 @@ namespace WebCore { class HTMLTitleElement final : public HTMLElement { public: - static PassRefPtr<HTMLTitleElement> create(const QualifiedName&, Document&); + static Ref<HTMLTitleElement> create(const QualifiedName&, Document&); - String text() const; - void setText(const String&); + WEBCORE_EXPORT String text() const; + WEBCORE_EXPORT void setText(const String&); - StringWithDirection textWithDirection(); + const StringWithDirection& textWithDirection() const { return m_title; } private: HTMLTitleElement(const QualifiedName&, Document&); - virtual InsertionNotificationRequest insertedInto(ContainerNode&) override; - virtual void removedFrom(ContainerNode&) override; - virtual void childrenChanged(const ChildChange&) override; + InsertionNotificationRequest insertedInto(ContainerNode&) final; + void removedFrom(ContainerNode&) final; + void childrenChanged(const ChildChange&) final; + + StringWithDirection computedTextWithDirection(); StringWithDirection m_title; }; -NODE_TYPE_CASTS(HTMLTitleElement) - } //namespace - -#endif |