summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGFEPointLightElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGFEPointLightElement.cpp')
-rw-r--r--Source/WebCore/svg/SVGFEPointLightElement.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/WebCore/svg/SVGFEPointLightElement.cpp b/Source/WebCore/svg/SVGFEPointLightElement.cpp
index e215e055a..831f2c83b 100644
--- a/Source/WebCore/svg/SVGFEPointLightElement.cpp
+++ b/Source/WebCore/svg/SVGFEPointLightElement.cpp
@@ -18,8 +18,6 @@
*/
#include "config.h"
-
-#if ENABLE(SVG) && ENABLE(FILTERS)
#include "SVGFEPointLightElement.h"
#include "SVGNames.h"
@@ -33,18 +31,14 @@ inline SVGFEPointLightElement::SVGFEPointLightElement(const QualifiedName& tagNa
ASSERT(hasTagName(SVGNames::fePointLightTag));
}
-PassRefPtr<SVGFEPointLightElement> SVGFEPointLightElement::create(const QualifiedName& tagName, Document& document)
+Ref<SVGFEPointLightElement> SVGFEPointLightElement::create(const QualifiedName& tagName, Document& document)
{
- return adoptRef(new SVGFEPointLightElement(tagName, document));
+ return adoptRef(*new SVGFEPointLightElement(tagName, document));
}
-PassRefPtr<LightSource> SVGFEPointLightElement::lightSource() const
+Ref<LightSource> SVGFEPointLightElement::lightSource() const
{
return PointLightSource::create(FloatPoint3D(x(), y(), z()));
}
}
-
-#endif // ENABLE(SVG)
-
-// vim:ts=4:noet