summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLFrameSetElement.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/HTMLFrameSetElement.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLFrameSetElement.h')
-rw-r--r--Source/WebCore/html/HTMLFrameSetElement.h48
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