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

Unified Diff: Source/core/svg/SVGFESpecularLightingElement.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/SVGFESpecularLightingElement.h ('k') | Source/core/svg/SVGFESpotLightElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFESpecularLightingElement.cpp
diff --git a/Source/core/svg/SVGFESpecularLightingElement.cpp b/Source/core/svg/SVGFESpecularLightingElement.cpp
index a1be26a29cad3720e0a022130be960396b89dbfe..422b6a4cb8ac3358d5ae2d39397eae45b3be57f5 100644
--- a/Source/core/svg/SVGFESpecularLightingElement.cpp
+++ b/Source/core/svg/SVGFESpecularLightingElement.cpp
@@ -30,7 +30,7 @@
namespace WebCore {
-SVGFESpecularLightingElement::SVGFESpecularLightingElement(Document& document)
+inline SVGFESpecularLightingElement::SVGFESpecularLightingElement(Document& document)
: SVGFilterPrimitiveStandardAttributes(SVGNames::feSpecularLightingTag, document)
, m_specularConstant(SVGAnimatedNumber::create(this, SVGNames::specularConstantAttr, SVGNumber::create(1)))
, m_specularExponent(SVGAnimatedNumber::create(this, SVGNames::specularExponentAttr, SVGNumber::create(1)))
@@ -47,6 +47,8 @@ SVGFESpecularLightingElement::SVGFESpecularLightingElement(Document& document)
addToPropertyMap(m_in1);
}
+DEFINE_NODE_FACTORY(SVGFESpecularLightingElement)
+
bool SVGFESpecularLightingElement::isSupportedAttribute(const QualifiedName& attrName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
« no previous file with comments | « Source/core/svg/SVGFESpecularLightingElement.h ('k') | Source/core/svg/SVGFESpotLightElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698