From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/HTMLLegendElement.h | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'Source/WebCore/html/HTMLLegendElement.h') 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 create(const QualifiedName&, Document&); + static Ref 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 -- cgit v1.2.1