diff options
Diffstat (limited to 'Source/WebCore/svg/SVGRectElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGRectElement.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/Source/WebCore/svg/SVGRectElement.h b/Source/WebCore/svg/SVGRectElement.h index 0247ba443..7b2f87ec4 100644 --- a/Source/WebCore/svg/SVGRectElement.h +++ b/Source/WebCore/svg/SVGRectElement.h @@ -18,10 +18,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGRectElement_h -#define SVGRectElement_h +#pragma once -#if ENABLE(SVG) #include "SVGAnimatedBoolean.h" #include "SVGAnimatedLength.h" #include "SVGExternalResourcesRequired.h" @@ -33,21 +31,19 @@ namespace WebCore { class SVGRectElement final : public SVGGraphicsElement, public SVGExternalResourcesRequired { public: - static PassRefPtr<SVGRectElement> create(const QualifiedName&, Document&); + static Ref<SVGRectElement> create(const QualifiedName&, Document&); private: SVGRectElement(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(SVGRectElement) DECLARE_ANIMATED_LENGTH(X, x) @@ -56,13 +52,8 @@ private: DECLARE_ANIMATED_LENGTH(Height, height) DECLARE_ANIMATED_LENGTH(Rx, rx) DECLARE_ANIMATED_LENGTH(Ry, ry) - DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired) + DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired) END_DECLARE_ANIMATED_PROPERTIES }; -NODE_TYPE_CASTS(SVGRectElement) - } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |