summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGFESpotLightElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGFESpotLightElement.cpp')
-rw-r--r--Source/WebCore/svg/SVGFESpotLightElement.cpp14
1 files changed, 4 insertions, 10 deletions
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> SVGFESpotLightElement::create(const QualifiedName& tagName, Document& document)
+Ref<SVGFESpotLightElement> SVGFESpotLightElement::create(const QualifiedName& tagName, Document& document)
{
- return adoptRef(new SVGFESpotLightElement(tagName, document));
+ return adoptRef(*new SVGFESpotLightElement(tagName, document));
}
-PassRefPtr<LightSource> SVGFESpotLightElement::lightSource() const
+Ref<LightSource> SVGFESpotLightElement::lightSource() const
{
FloatPoint3D pos(x(), y(), z());
FloatPoint3D direction(pointsAtX(), pointsAtY(), pointsAtZ());
@@ -47,7 +45,3 @@ PassRefPtr<LightSource> SVGFESpotLightElement::lightSource() const
}
}
-
-#endif // ENABLE(SVG)
-
-// vim:ts=4:noet