From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/svg/SVGStopElement.h | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'Source/WebCore/svg/SVGStopElement.h') 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 create(const QualifiedName&, Document&); + static Ref 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 createElementRenderer(PassRef) override; - virtual bool rendererIsNeeded(const RenderStyle&) override; + RenderPtr 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 -- cgit v1.2.1