diff options
Diffstat (limited to 'Source/WebCore/svg/SVGStopElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGStopElement.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/Source/WebCore/svg/SVGStopElement.h b/Source/WebCore/svg/SVGStopElement.h index 00f92acc7..37fb9771b 100644 --- a/Source/WebCore/svg/SVGStopElement.h +++ b/Source/WebCore/svg/SVGStopElement.h @@ -18,10 +18,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGStopElement_h -#define SVGStopElement_h +#pragma once -#if ENABLE(SVG) #include "SVGAnimatedNumber.h" #include "SVGElement.h" @@ -29,30 +27,24 @@ namespace WebCore { class SVGStopElement final : public SVGElement { public: - static PassRefPtr<SVGStopElement> create(const QualifiedName&, Document&); + static Ref<SVGStopElement> create(const QualifiedName&, Document&); Color stopColorIncludingOpacity() const; private: SVGStopElement(const QualifiedName&, Document&); - 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 isGradientStop() const override { return true; } + bool isGradientStop() const final { return true; } - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; - virtual bool rendererIsNeeded(const RenderStyle&) override; + RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; + bool rendererIsNeeded(const RenderStyle&) final; BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGStopElement) DECLARE_ANIMATED_NUMBER(Offset, offset) END_DECLARE_ANIMATED_PROPERTIES }; -NODE_TYPE_CASTS(SVGStopElement) - } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |