summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLLabelElement.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/HTMLLabelElement.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLLabelElement.h')
-rw-r--r--Source/WebCore/html/HTMLLabelElement.h30
1 files changed, 11 insertions, 19 deletions
diff --git a/Source/WebCore/html/HTMLLabelElement.h b/Source/WebCore/html/HTMLLabelElement.h
index aea5237a8..a3d142108 100644
--- a/Source/WebCore/html/HTMLLabelElement.h
+++ b/Source/WebCore/html/HTMLLabelElement.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, 2007, 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2004-2017 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,42 +21,34 @@
*
*/
-#ifndef HTMLLabelElement_h
-#define HTMLLabelElement_h
+#pragma once
-#include "HTMLElement.h"
#include "LabelableElement.h"
namespace WebCore {
class HTMLLabelElement final : public HTMLElement {
public:
- static PassRefPtr<HTMLLabelElement> create(const QualifiedName&, Document&);
+ static Ref<HTMLLabelElement> create(const QualifiedName&, Document&);
- LabelableElement* control();
- HTMLFormElement* form() const;
+ WEBCORE_EXPORT LabelableElement* control() const;
+ WEBCORE_EXPORT HTMLFormElement* form() const final;
- virtual bool willRespondToMouseClickEvents() override;
+ bool willRespondToMouseClickEvents() final;
private:
HTMLLabelElement(const QualifiedName&, Document&);
- virtual bool isFocusable() const override;
-
- virtual void accessKeyAction(bool sendMouseEvents) override;
+ void accessKeyAction(bool sendMouseEvents) final;
// Overridden to update the hover/active state of the corresponding control.
- virtual void setActive(bool = true, bool pause = false) override;
- virtual void setHovered(bool = true) override;
+ void setActive(bool = true, bool pause = false) final;
+ void setHovered(bool = true) final;
// Overridden to either click() or focus() the corresponding control.
- virtual void defaultEventHandler(Event*) override;
+ void defaultEventHandler(Event&) final;
- virtual void focus(bool restorePreviousSelection, FocusDirection) override;
+ void focus(bool restorePreviousSelection, FocusDirection) final;
};
-NODE_TYPE_CASTS(HTMLLabelElement)
-
} //namespace
-
-#endif