summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLFrameElement.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/HTMLFrameElement.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLFrameElement.h')
-rw-r--r--Source/WebCore/html/HTMLFrameElement.h32
1 files changed, 12 insertions, 20 deletions
diff --git a/Source/WebCore/html/HTMLFrameElement.h b/Source/WebCore/html/HTMLFrameElement.h
index 5579c9848..4f08ab046 100644
--- a/Source/WebCore/html/HTMLFrameElement.h
+++ b/Source/WebCore/html/HTMLFrameElement.h
@@ -21,41 +21,33 @@
*
*/
-#ifndef HTMLFrameElement_h
-#define HTMLFrameElement_h
+#pragma once
#include "HTMLFrameElementBase.h"
namespace WebCore {
+class RenderFrame;
+
class HTMLFrameElement final : public HTMLFrameElementBase {
public:
- static PassRefPtr<HTMLFrameElement> create(const QualifiedName&, Document&);
+ static Ref<HTMLFrameElement> create(const QualifiedName&, Document&);
bool hasFrameBorder() const { return m_frameBorder; }
-
bool noResize() const;
+ RenderFrame* renderer() const;
+
private:
HTMLFrameElement(const QualifiedName&, Document&);
- virtual void didAttachRenderers() override;
-
- virtual bool rendererIsNeeded(const RenderStyle&) override;
- virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
-
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
+ void didAttachRenderers() final;
+ bool rendererIsNeeded(const RenderStyle&) final;
+ RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final;
+ void parseAttribute(const QualifiedName&, const AtomicString&) final;
-#if ENABLE(FULLSCREEN_API)
- virtual bool allowFullScreen() const { return false; }
-#endif
-
- bool m_frameBorder;
- bool m_frameBorderSet;
+ bool m_frameBorder { true };
+ bool m_frameBorderSet { false };
};
-NODE_TYPE_CASTS(HTMLFrameElement)
-
} // namespace WebCore
-
-#endif // HTMLFrameElement_h