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/HTMLTitleElement.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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 |