diff options
Diffstat (limited to 'Source/WebCore/html/HTMLLegendElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLLegendElement.h | 22 |
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 |