summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLLegendElement.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/HTMLLegendElement.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLLegendElement.h')
-rw-r--r--Source/WebCore/html/HTMLLegendElement.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/Source/WebCore/html/HTMLLegendElement.h b/Source/WebCore/html/HTMLLegendElement.h
index 24568bda4..144e19f62 100644
--- a/Source/WebCore/html/HTMLLegendElement.h
+++ b/Source/WebCore/html/HTMLLegendElement.h
@@ -2,7 +2,7 @@
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2004-2018 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -21,8 +21,7 @@
*
*/
-#ifndef HTMLLegendElement_h
-#define HTMLLegendElement_h
+#pragma once
#include "HTMLElement.h"
@@ -32,21 +31,18 @@ class HTMLFormControlElement;
class HTMLLegendElement final : public HTMLElement {
public:
- static PassRefPtr<HTMLLegendElement> create(const QualifiedName&, Document&);
+ static Ref<HTMLLegendElement> create(const QualifiedName&, Document&);
+
+ WEBCORE_EXPORT HTMLFormElement* form() const final;
private:
HTMLLegendElement(const QualifiedName&, Document&);
- // Control in the legend's fieldset that gets focus and access key.
+ // Control in the legend's field set that gets focus and access key.
HTMLFormControlElement* associatedControl();
- virtual void accessKeyAction(bool sendMouseEvents) override;
- virtual void focus(bool restorePreviousSelection, FocusDirection) override;
- virtual HTMLFormElement* virtualForm() const override;
+ void accessKeyAction(bool sendMouseEvents) final;
+ void focus(bool restorePreviousSelection, FocusDirection) final;
};
-NODE_TYPE_CASTS(HTMLLegendElement)
-
-} //namespace
-
-#endif
+} // namespace WebCore