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

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

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (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
« no previous file with comments | « Source/core/svg/SVGFESpotLightElement.h ('k') | Source/core/svg/SVGFETileElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFESpotLightElement.cpp
diff --git a/Source/core/svg/SVGFESpotLightElement.cpp b/Source/core/svg/SVGFESpotLightElement.cpp
index 4f267641329d2bc9f9cddfb865f3e1f0a9d838ad..7df5ba58bcbb1ddd7f7f73a70b229946e15e8fc8 100644
--- a/Source/core/svg/SVGFESpotLightElement.cpp
+++ b/Source/core/svg/SVGFESpotLightElement.cpp
@@ -25,12 +25,14 @@
namespace WebCore {
-SVGFESpotLightElement::SVGFESpotLightElement(Document& document)
+inline SVGFESpotLightElement::SVGFESpotLightElement(Document& document)
: SVGFELightElement(SVGNames::feSpotLightTag, document)
{
ScriptWrappable::init(this);
}
+DEFINE_NODE_FACTORY(SVGFESpotLightElement)
+
PassRefPtr<LightSource> SVGFESpotLightElement::lightSource() const
{
FloatPoint3D pos(x()->currentValue()->value(), y()->currentValue()->value(), z()->currentValue()->value());
« no previous file with comments | « Source/core/svg/SVGFESpotLightElement.h ('k') | Source/core/svg/SVGFETileElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698