Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1560)

Unified Diff: Source/core/svg/SVGFEPointLightElement.cpp

Issue 395813002: Resolve light-source position/direction when updated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGFELightElement.cpp ('k') | Source/core/svg/SVGFESpecularLightingElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEPointLightElement.cpp
diff --git a/Source/core/svg/SVGFEPointLightElement.cpp b/Source/core/svg/SVGFEPointLightElement.cpp
index 79c43e74d6f037292a48b565908c1efbfd92dfd2..68e0358ca3328723a0d7ab8de0fe36877668f375 100644
--- a/Source/core/svg/SVGFEPointLightElement.cpp
+++ b/Source/core/svg/SVGFEPointLightElement.cpp
@@ -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()));
}
}
« no previous file with comments | « Source/core/svg/SVGFELightElement.cpp ('k') | Source/core/svg/SVGFESpecularLightingElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698