summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLTitleElement.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/HTMLTitleElement.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLTitleElement.h')
-rw-r--r--Source/WebCore/html/HTMLTitleElement.h24
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