diff options
Diffstat (limited to 'Source/WebCore/html/HTMLMapElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLMapElement.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/Source/WebCore/html/HTMLMapElement.h b/Source/WebCore/html/HTMLMapElement.h index 9ae446728..18265d031 100644 --- a/Source/WebCore/html/HTMLMapElement.h +++ b/Source/WebCore/html/HTMLMapElement.h @@ -20,8 +20,7 @@ * */ -#ifndef HTMLMapElement_h -#define HTMLMapElement_h +#pragma once #include "HTMLElement.h" @@ -32,8 +31,8 @@ class HTMLImageElement; class HTMLMapElement final : public HTMLElement { public: - static PassRefPtr<HTMLMapElement> create(Document&); - static PassRefPtr<HTMLMapElement> create(const QualifiedName&, Document&); + static Ref<HTMLMapElement> create(Document&); + static Ref<HTMLMapElement> create(const QualifiedName&, Document&); virtual ~HTMLMapElement(); const AtomicString& getName() const { return m_name; } @@ -41,21 +40,17 @@ public: bool mapMouseEvent(LayoutPoint location, const LayoutSize&, HitTestResult&); HTMLImageElement* imageElement(); - PassRefPtr<HTMLCollection> areas(); + WEBCORE_EXPORT Ref<HTMLCollection> areas(); private: HTMLMapElement(const QualifiedName&, Document&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; + void parseAttribute(const QualifiedName&, const AtomicString&) final; - virtual InsertionNotificationRequest insertedInto(ContainerNode&) override; - virtual void removedFrom(ContainerNode&) override; + InsertionNotificationRequest insertedInto(ContainerNode&) final; + void removedFrom(ContainerNode&) final; AtomicString m_name; }; -NODE_TYPE_CASTS(HTMLMapElement) - } // namespaces - -#endif |