diff options
Diffstat (limited to 'Source/WebCore/svg/SVGSymbolElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGSymbolElement.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/Source/WebCore/svg/SVGSymbolElement.h b/Source/WebCore/svg/SVGSymbolElement.h index 8bacaf537..57857f0dc 100644 --- a/Source/WebCore/svg/SVGSymbolElement.h +++ b/Source/WebCore/svg/SVGSymbolElement.h @@ -18,10 +18,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGSymbolElement_h -#define SVGSymbolElement_h +#pragma once -#if ENABLE(SVG) #include "SVGAnimatedBoolean.h" #include "SVGAnimatedPreserveAspectRatio.h" #include "SVGAnimatedRect.h" @@ -35,28 +33,22 @@ class SVGSymbolElement final : public SVGElement, public SVGExternalResourcesRequired, public SVGFitToViewBox { public: - static PassRefPtr<SVGSymbolElement> create(const QualifiedName&, Document&); + static Ref<SVGSymbolElement> create(const QualifiedName&, Document&); private: SVGSymbolElement(const QualifiedName&, Document&); - virtual bool supportsFocus() const override { return true; } + void parseAttribute(const QualifiedName&, const AtomicString&) override; + void svgAttributeChanged(const QualifiedName&) override; + RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override; - bool isSupportedAttribute(const QualifiedName&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual void svgAttributeChanged(const QualifiedName&) override; - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; - - virtual bool selfHasRelativeLengths() const override; + bool selfHasRelativeLengths() const override; BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSymbolElement) - DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired) + DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired) DECLARE_ANIMATED_RECT(ViewBox, viewBox) DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspectRatio) END_DECLARE_ANIMATED_PROPERTIES }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |