Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGFEPointLightElement.cpp
index 79c43e7..78ff783 100644 (file)
@@ -24,7 +24,7 @@
 #include "platform/graphics/filters/Filter.h"
 #include "platform/graphics/filters/PointLightSource.h"
 
-namespace WebCore {
+namespace blink {
 
 inline SVGFEPointLightElement::SVGFEPointLightElement(Document& document)
     : SVGFELightElement(SVGNames::fePointLightTag, document)
@@ -36,8 +36,7 @@ DEFINE_NODE_FACTORY(SVGFEPointLightElement)
 
 PassRefPtr<LightSource> SVGFEPointLightElement::lightSource(Filter* filter) const
 {
-    FloatPoint3D location(x()->currentValue()->value(), y()->currentValue()->value(), z()->currentValue()->value());
-    return PointLightSource::create(filter->resolve3dPoint(location));
+    return PointLightSource::create(filter->resolve3dPoint(position()));
 }
 
 }