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/HTMLOutputElement.h | 35 ++++++++++++++------------------- 1 file changed, 15 insertions(+), 20 deletions(-) (limited to 'Source/WebCore/html/HTMLOutputElement.h') diff --git a/Source/WebCore/html/HTMLOutputElement.h b/Source/WebCore/html/HTMLOutputElement.h index 9c4166132..03d49982d 100644 --- a/Source/WebCore/html/HTMLOutputElement.h +++ b/Source/WebCore/html/HTMLOutputElement.h @@ -28,48 +28,43 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef HTMLOutputElement_h -#define HTMLOutputElement_h +#pragma once -#include "DOMSettableTokenList.h" +#include "DOMTokenList.h" #include "HTMLFormControlElement.h" namespace WebCore { class HTMLOutputElement final : public HTMLFormControlElement { public: - static PassRefPtr create(const QualifiedName&, Document&, HTMLFormElement*); - - virtual bool willValidate() const override { return false; } + static Ref create(const QualifiedName&, Document&, HTMLFormElement*); String value() const; void setValue(const String&); String defaultValue() const; void setDefaultValue(const String&); - void setFor(const String&); - DOMSettableTokenList* htmlFor() const; + DOMTokenList& htmlFor(); - virtual bool canContainRangeEndPoint() const override { return false; } + bool canContainRangeEndPoint() const final { return false; } private: HTMLOutputElement(const QualifiedName&, Document&, HTMLFormElement*); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual const AtomicString& formControlType() const override; - virtual bool isEnumeratable() const override { return true; } - virtual bool supportLabels() const override { return true; } - virtual bool supportsFocus() const override; - virtual void childrenChanged(const ChildChange&) override; - virtual void reset() override; + bool computeWillValidate() const final { return false; } + void parseAttribute(const QualifiedName&, const AtomicString&) final; + const AtomicString& formControlType() const final; + bool isEnumeratable() const final { return true; } + bool supportLabels() const final { return true; } + bool supportsFocus() const final; + void childrenChanged(const ChildChange&) final; + void reset() final; void setTextContentInternal(const String&); bool m_isDefaultValueMode; bool m_isSetTextContentInProgress; String m_defaultValue; - RefPtr m_tokens; + std::unique_ptr m_tokens; }; -} // namespace - -#endif +} // namespace WebCore -- cgit v1.2.1