diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/svg/SVGFESpotLightElement.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/svg/SVGFESpotLightElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGFESpotLightElement.cpp | 14 |
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 |