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

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

Issue 337903003: Map light-source oBB-relative coordinates to the user-space of the filter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
Index: Source/core/svg/SVGFEPointLightElement.cpp
diff --git a/Source/core/svg/SVGFEPointLightElement.cpp b/Source/core/svg/SVGFEPointLightElement.cpp
index 1c6db05a2de86958c5cd80ae27781e52ce62e615..79c43e74d6f037292a48b565908c1efbfd92dfd2 100644
--- a/Source/core/svg/SVGFEPointLightElement.cpp
+++ b/Source/core/svg/SVGFEPointLightElement.cpp
@@ -21,6 +21,7 @@
#include "core/svg/SVGFEPointLightElement.h"
#include "core/SVGNames.h"
+#include "platform/graphics/filters/Filter.h"
#include "platform/graphics/filters/PointLightSource.h"
namespace WebCore {
@@ -33,9 +34,10 @@ inline SVGFEPointLightElement::SVGFEPointLightElement(Document& document)
DEFINE_NODE_FACTORY(SVGFEPointLightElement)
-PassRefPtr<LightSource> SVGFEPointLightElement::lightSource() const
+PassRefPtr<LightSource> SVGFEPointLightElement::lightSource(Filter* filter) const
{
- return PointLightSource::create(FloatPoint3D(x()->currentValue()->value(), y()->currentValue()->value(), z()->currentValue()->value()));
+ FloatPoint3D location(x()->currentValue()->value(), y()->currentValue()->value(), z()->currentValue()->value());
+ return PointLightSource::create(filter->resolve3dPoint(location));
}
}

Powered by Google App Engine
This is Rietveld 408576698