diff options
Diffstat (limited to 'Source/WebCore/html/HTMLSummaryElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLSummaryElement.h | 28 |
1 files changed, 13 insertions, 15 deletions
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<HTMLSummaryElement> create(const QualifiedName&, Document&); - bool isMainSummary() const; - virtual bool willRespondToMouseClickEvents() override; + static Ref<HTMLSummaryElement> create(const QualifiedName&, Document&); + + bool isActiveSummary() const; + bool willRespondToMouseClickEvents() final; private: HTMLSummaryElement(const QualifiedName&, Document&); - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; - virtual bool childShouldCreateRenderer(const Node&) const override; - virtual void defaultEventHandler(Event*) override; + RenderPtr<RenderElement> 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 |