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

Unified Diff: Source/core/svg/SVGFEDistantLightElement.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/SVGFEDistantLightElement.h ('k') | Source/core/svg/SVGFEDropShadowElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEDistantLightElement.cpp
diff --git a/Source/core/svg/SVGFEDistantLightElement.cpp b/Source/core/svg/SVGFEDistantLightElement.cpp
index 716ff95cb7f6410e3fe3bcedd1715d4050b373ad..059b77ceb1df91758996ff43da7494351ea87b2c 100644
--- a/Source/core/svg/SVGFEDistantLightElement.cpp
+++ b/Source/core/svg/SVGFEDistantLightElement.cpp
@@ -25,12 +25,14 @@
namespace WebCore {
-SVGFEDistantLightElement::SVGFEDistantLightElement(Document& document)
+inline SVGFEDistantLightElement::SVGFEDistantLightElement(Document& document)
: SVGFELightElement(SVGNames::feDistantLightTag, document)
{
ScriptWrappable::init(this);
}
+DEFINE_NODE_FACTORY(SVGFEDistantLightElement)
+
PassRefPtr<LightSource> SVGFEDistantLightElement::lightSource() const
{
return DistantLightSource::create(azimuth()->currentValue()->value(), elevation()->currentValue()->value());
« no previous file with comments | « Source/core/svg/SVGFEDistantLightElement.h ('k') | Source/core/svg/SVGFEDropShadowElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698