diff options
Diffstat (limited to 'Source/WebCore/html/HTMLHRElement.h')
| -rw-r--r-- | Source/WebCore/html/HTMLHRElement.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/WebCore/html/HTMLHRElement.h b/Source/WebCore/html/HTMLHRElement.h index f159465c2..3d483c4af 100644 --- a/Source/WebCore/html/HTMLHRElement.h +++ b/Source/WebCore/html/HTMLHRElement.h @@ -29,15 +29,16 @@ namespace WebCore { class HTMLHRElement final : public HTMLElement { public: - static Ref<HTMLHRElement> create(Document&); - static Ref<HTMLHRElement> create(const QualifiedName&, Document&); + static PassRefPtr<HTMLHRElement> create(Document&); + static PassRefPtr<HTMLHRElement> create(const QualifiedName&, Document&); + + virtual bool canContainRangeEndPoint() const override { return hasChildNodes(); } private: HTMLHRElement(const QualifiedName&, Document&); virtual bool isPresentationAttribute(const QualifiedName&) const override; virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override; - virtual bool canContainRangeEndPoint() const override; }; } // namespace WebCore |
