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/SVGFESpotLightElement.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'Source/WebCore/svg/SVGFESpotLightElement.cpp') diff --git a/Source/WebCore/svg/SVGFESpotLightElement.cpp b/Source/WebCore/svg/SVGFESpotLightElement.cpp index 4d5093bd7..55952d1a5 100644 --- a/Source/WebCore/svg/SVGFESpotLightElement.cpp +++ b/Source/WebCore/svg/SVGFESpotLightElement.cpp @@ -18,11 +18,9 @@ */ #include "config.h" - -#if ENABLE(SVG) && ENABLE(FILTERS) #include "SVGFESpotLightElement.h" -#include "SVGNames.h" +#include "SVGNames.h" #include "SpotLightSource.h" namespace WebCore { @@ -33,12 +31,12 @@ inline SVGFESpotLightElement::SVGFESpotLightElement(const QualifiedName& tagName ASSERT(hasTagName(SVGNames::feSpotLightTag)); } -PassRefPtr SVGFESpotLightElement::create(const QualifiedName& tagName, Document& document) +Ref SVGFESpotLightElement::create(const QualifiedName& tagName, Document& document) { - return adoptRef(new SVGFESpotLightElement(tagName, document)); + return adoptRef(*new SVGFESpotLightElement(tagName, document)); } -PassRefPtr SVGFESpotLightElement::lightSource() const +Ref SVGFESpotLightElement::lightSource() const { FloatPoint3D pos(x(), y(), z()); FloatPoint3D direction(pointsAtX(), pointsAtY(), pointsAtZ()); @@ -47,7 +45,3 @@ PassRefPtr SVGFESpotLightElement::lightSource() const } } - -#endif // ENABLE(SVG) - -// vim:ts=4:noet -- cgit v1.2.1