diff options
Diffstat (limited to 'WebCore/svg/SVGFESpotLightElement.cpp')
| -rw-r--r-- | WebCore/svg/SVGFESpotLightElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/svg/SVGFESpotLightElement.cpp b/WebCore/svg/SVGFESpotLightElement.cpp index 980a3bb..01fe54e 100644 --- a/WebCore/svg/SVGFESpotLightElement.cpp +++ b/WebCore/svg/SVGFESpotLightElement.cpp @@ -34,7 +34,7 @@ SVGFESpotLightElement::~SVGFESpotLightElement() { } -LightSource* SVGFESpotLightElement::lightSource() const +PassRefPtr<LightSource> SVGFESpotLightElement::lightSource() const { FloatPoint3D pos(x(), y(), z()); @@ -44,7 +44,7 @@ LightSource* SVGFESpotLightElement::lightSource() const pointsAtZ() - pos.z()); direction.normalize(); - return new SpotLightSource(pos, direction, specularExponent(), limitingConeAngle()); + return SpotLightSource::create(pos, direction, specularExponent(), limitingConeAngle()); } } |
