summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLSummaryElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLSummaryElement.h')
-rw-r--r--Source/WebCore/html/HTMLSummaryElement.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/Source/WebCore/html/HTMLSummaryElement.h b/Source/WebCore/html/HTMLSummaryElement.h
index 011e324be..fbabcde52 100644
--- a/Source/WebCore/html/HTMLSummaryElement.h
+++ b/Source/WebCore/html/HTMLSummaryElement.h
@@ -29,27 +29,25 @@ class HTMLDetailsElement;
class HTMLSummaryElement final : public HTMLElement {
public:
- static Ref<HTMLSummaryElement> create(const QualifiedName&, Document&);
-
- bool isActiveSummary() const;
+ static PassRefPtr<HTMLSummaryElement> create(const QualifiedName&, Document&);
+ bool isMainSummary() const;
virtual bool willRespondToMouseClickEvents() override;
private:
HTMLSummaryElement(const QualifiedName&, Document&);
- virtual RenderPtr<RenderElement> createElementRenderer(Ref<RenderStyle>&&, const RenderTreePosition&) override;
+ virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
+ virtual bool childShouldCreateRenderer(const Node&) const override;
virtual void defaultEventHandler(Event*) override;
virtual void didAddUserAgentShadowRoot(ShadowRoot*) override;
-
- // FIXME: Shadow DOM spec says we should be able to create shadow root on this element
- virtual bool canHaveUserAgentShadowRoot() const override final { return true; }
-
HTMLDetailsElement* detailsElement() const;
- virtual bool supportsFocus() const override;
+ bool supportsFocus() const override;
};
+NODE_TYPE_CASTS(HTMLSummaryElement)
+
}
#endif // HTMLSummaryElement_h