diff options
Diffstat (limited to 'Source/WebCore/html/HTMLFrameSetElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLFrameSetElement.h | 48 |
1 files changed, 12 insertions, 36 deletions
diff --git a/Source/WebCore/html/HTMLFrameSetElement.h b/Source/WebCore/html/HTMLFrameSetElement.h index 80e7f2afe..6dc1ad669 100644 --- a/Source/WebCore/html/HTMLFrameSetElement.h +++ b/Source/WebCore/html/HTMLFrameSetElement.h @@ -21,8 +21,7 @@ * */ -#ifndef HTMLFrameSetElement_h -#define HTMLFrameSetElement_h +#pragma once #include "HTMLElement.h" #include <memory> @@ -31,7 +30,7 @@ namespace WebCore { class HTMLFrameSetElement final : public HTMLElement { public: - static PassRefPtr<HTMLFrameSetElement> create(const QualifiedName&, Document&); + static Ref<HTMLFrameSetElement> create(const QualifiedName&, Document&); bool hasFrameBorder() const { return m_frameborder; } bool noResize() const { return m_noresize; } @@ -47,42 +46,23 @@ public: static HTMLFrameSetElement* findContaining(Element* descendant); - // Declared virtual in Element - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(blur); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(error); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(focus); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(load); - - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(beforeunload); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(hashchange); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(message); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(offline); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(online); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(popstate); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(resize); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(storage); - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(unload); -#if ENABLE(ORIENTATION_EVENTS) - DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(orientationchange); -#endif - private: HTMLFrameSetElement(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; + void parseAttribute(const QualifiedName&, const AtomicString&) final; + bool isPresentationAttribute(const QualifiedName&) const final; + void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) final; - virtual void willAttachRenderers() override; - virtual bool rendererIsNeeded(const RenderStyle&) override; - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; + void willAttachRenderers() final; + bool rendererIsNeeded(const RenderStyle&) final; + RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; - virtual void defaultEventHandler(Event*) override; + void defaultEventHandler(Event&) final; - virtual bool willRecalcStyle(Style::Change) override; + void willRecalcStyle(Style::Change) final; - virtual InsertionNotificationRequest insertedInto(ContainerNode&) override; - virtual void removedFrom(ContainerNode&) override; + InsertionNotificationRequest insertedInto(ContainerNode&) final; + void removedFrom(ContainerNode&) final; std::unique_ptr<Length[]> m_rowLengths; std::unique_ptr<Length[]> m_colLengths; @@ -100,8 +80,4 @@ private: bool m_noresize; }; -NODE_TYPE_CASTS(HTMLFrameSetElement) - } // namespace WebCore - -#endif // HTMLFrameSetElement_h |