summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGCircleElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGCircleElement.h')
-rw-r--r--Source/WebCore/svg/SVGCircleElement.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/Source/WebCore/svg/SVGCircleElement.h b/Source/WebCore/svg/SVGCircleElement.h
index c1c662f8b..74004fb63 100644
--- a/Source/WebCore/svg/SVGCircleElement.h
+++ b/Source/WebCore/svg/SVGCircleElement.h
@@ -18,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGCircleElement_h
-#define SVGCircleElement_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedLength.h"
#include "SVGExternalResourcesRequired.h"
@@ -32,33 +30,26 @@ namespace WebCore {
class SVGCircleElement final : public SVGGraphicsElement,
public SVGExternalResourcesRequired {
public:
- static PassRefPtr<SVGCircleElement> create(const QualifiedName&, Document&);
+ static Ref<SVGCircleElement> create(const QualifiedName&, Document&);
private:
SVGCircleElement(const QualifiedName&, Document&);
- virtual bool isValid() const override { return SVGTests::isValid(); }
- virtual bool supportsFocus() const override { return true; }
+ bool isValid() const final { return SVGTests::isValid(); }
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
- virtual void svgAttributeChanged(const QualifiedName&) override;
+ void parseAttribute(const QualifiedName&, const AtomicString&) final;
+ void svgAttributeChanged(const QualifiedName&) final;
- virtual bool selfHasRelativeLengths() const override;
+ bool selfHasRelativeLengths() const final { return true; }
- virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
+ RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCircleElement)
DECLARE_ANIMATED_LENGTH(Cx, cx)
DECLARE_ANIMATED_LENGTH(Cy, cy)
DECLARE_ANIMATED_LENGTH(R, r)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
+ DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
-NODE_TYPE_CASTS(SVGCircleElement)
-
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGCircleElement_h