diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFELightElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGFELightElement.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Source/WebCore/svg/SVGFELightElement.h b/Source/WebCore/svg/SVGFELightElement.h index 13865a3bc..02471ba9c 100644 --- a/Source/WebCore/svg/SVGFELightElement.h +++ b/Source/WebCore/svg/SVGFELightElement.h @@ -19,10 +19,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGFELightElement_h -#define SVGFELightElement_h +#pragma once -#if ENABLE(SVG) && ENABLE(FILTERS) #include "LightSource.h" #include "SVGAnimatedNumber.h" #include "SVGElement.h" @@ -31,20 +29,19 @@ namespace WebCore { class SVGFELightElement : public SVGElement { public: - virtual PassRefPtr<LightSource> lightSource() const = 0; + virtual Ref<LightSource> lightSource() const = 0; static SVGFELightElement* findLightElement(const SVGElement*); - static PassRefPtr<LightSource> findLightSource(const SVGElement*); + static RefPtr<LightSource> findLightSource(const SVGElement*); protected: SVGFELightElement(const QualifiedName&, Document&); - virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } + bool rendererIsNeeded(const RenderStyle&) override { return false; } private: - bool isSupportedAttribute(const QualifiedName&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual void svgAttributeChanged(const QualifiedName&) override; - virtual void childrenChanged(const ChildChange&) override; + void parseAttribute(const QualifiedName&, const AtomicString&) override; + void svgAttributeChanged(const QualifiedName&) override; + void childrenChanged(const ChildChange&) override; BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFELightElement) DECLARE_ANIMATED_NUMBER(Azimuth, azimuth) @@ -61,6 +58,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SVG) && ENABLE(FILTERS) -#endif |