summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLHRElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLHRElement.h')
-rw-r--r--Source/WebCore/html/HTMLHRElement.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/WebCore/html/HTMLHRElement.h b/Source/WebCore/html/HTMLHRElement.h
index 3d483c4af..8517ee4ec 100644
--- a/Source/WebCore/html/HTMLHRElement.h
+++ b/Source/WebCore/html/HTMLHRElement.h
@@ -20,8 +20,7 @@
*
*/
-#ifndef HTMLHRElement_h
-#define HTMLHRElement_h
+#pragma once
#include "HTMLElement.h"
@@ -29,18 +28,15 @@ namespace WebCore {
class HTMLHRElement final : public HTMLElement {
public:
- static PassRefPtr<HTMLHRElement> create(Document&);
- static PassRefPtr<HTMLHRElement> create(const QualifiedName&, Document&);
-
- virtual bool canContainRangeEndPoint() const override { return hasChildNodes(); }
+ static Ref<HTMLHRElement> create(Document&);
+ static Ref<HTMLHRElement> create(const QualifiedName&, Document&);
private:
HTMLHRElement(const QualifiedName&, Document&);
- virtual bool isPresentationAttribute(const QualifiedName&) const override;
- virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override;
+ bool isPresentationAttribute(const QualifiedName&) const final;
+ void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) final;
+ bool canContainRangeEndPoint() const final;
};
} // namespace WebCore
-
-#endif // HTMLHRElement_h