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/HTMLSummaryElement.h | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'Source/WebCore/html/HTMLSummaryElement.h') diff --git a/Source/WebCore/html/HTMLSummaryElement.h b/Source/WebCore/html/HTMLSummaryElement.h index fbabcde52..127a546d2 100644 --- a/Source/WebCore/html/HTMLSummaryElement.h +++ b/Source/WebCore/html/HTMLSummaryElement.h @@ -18,8 +18,7 @@ * */ -#ifndef HTMLSummaryElement_h -#define HTMLSummaryElement_h +#pragma once #include "HTMLElement.h" @@ -29,25 +28,24 @@ class HTMLDetailsElement; class HTMLSummaryElement final : public HTMLElement { public: - static PassRefPtr create(const QualifiedName&, Document&); - bool isMainSummary() const; - virtual bool willRespondToMouseClickEvents() override; + static Ref create(const QualifiedName&, Document&); + + bool isActiveSummary() const; + bool willRespondToMouseClickEvents() final; private: HTMLSummaryElement(const QualifiedName&, Document&); - virtual RenderPtr createElementRenderer(PassRef) override; - virtual bool childShouldCreateRenderer(const Node&) const override; - virtual void defaultEventHandler(Event*) override; + RenderPtr createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; + void defaultEventHandler(Event&) final; - virtual void didAddUserAgentShadowRoot(ShadowRoot*) override; - HTMLDetailsElement* detailsElement() const; + void didAddUserAgentShadowRoot(ShadowRoot*) final; - bool supportsFocus() const override; -}; + bool hasCustomFocusLogic() const final { return true; } -NODE_TYPE_CASTS(HTMLSummaryElement) + HTMLDetailsElement* detailsElement() const; -} + bool supportsFocus() const final; +}; -#endif // HTMLSummaryElement_h +} // namespace WebCore -- cgit v1.2.1