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

Unified Diff: Source/core/svg/SVGFEDiffuseLightingElement.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/SVGFEDiffuseLightingElement.h ('k') | Source/core/svg/SVGFEDisplacementMapElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEDiffuseLightingElement.cpp
diff --git a/Source/core/svg/SVGFEDiffuseLightingElement.cpp b/Source/core/svg/SVGFEDiffuseLightingElement.cpp
index 511902d3d4a03a8fe935876426676e118f883397..7b63d95540172295a102b6c86fd3aa235c0b6093 100644
--- a/Source/core/svg/SVGFEDiffuseLightingElement.cpp
+++ b/Source/core/svg/SVGFEDiffuseLightingElement.cpp
@@ -29,7 +29,7 @@
namespace WebCore {
-SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(Document& document)
+inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(Document& document)
: SVGFilterPrimitiveStandardAttributes(SVGNames::feDiffuseLightingTag, document)
, m_diffuseConstant(SVGAnimatedNumber::create(this, SVGNames::diffuseConstantAttr, SVGNumber::create(1)))
, m_surfaceScale(SVGAnimatedNumber::create(this, SVGNames::surfaceScaleAttr, SVGNumber::create(1)))
@@ -44,6 +44,8 @@ SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(Document& document)
addToPropertyMap(m_in1);
}
+DEFINE_NODE_FACTORY(SVGFEDiffuseLightingElement)
+
bool SVGFEDiffuseLightingElement::isSupportedAttribute(const QualifiedName& attrName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
« no previous file with comments | « Source/core/svg/SVGFEDiffuseLightingElement.h ('k') | Source/core/svg/SVGFEDisplacementMapElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698