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

Unified Diff: Source/core/svg/SVGFECompositeElement.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/SVGFECompositeElement.h ('k') | Source/core/svg/SVGFEConvolveMatrixElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFECompositeElement.cpp
diff --git a/Source/core/svg/SVGFECompositeElement.cpp b/Source/core/svg/SVGFECompositeElement.cpp
index 57e63ff99702611e70fd0d2c525cb29e26d263b5..846cadb6cb08f15d7325bab0db5689a9ceb31ea8 100644
--- a/Source/core/svg/SVGFECompositeElement.cpp
+++ b/Source/core/svg/SVGFECompositeElement.cpp
@@ -42,7 +42,7 @@ template<> const SVGEnumerationStringEntries& getStaticStringEntries<CompositeOp
return entries;
}
-SVGFECompositeElement::SVGFECompositeElement(Document& document)
+inline SVGFECompositeElement::SVGFECompositeElement(Document& document)
: SVGFilterPrimitiveStandardAttributes(SVGNames::feCompositeTag, document)
, m_k1(SVGAnimatedNumber::create(this, SVGNames::k1Attr, SVGNumber::create()))
, m_k2(SVGAnimatedNumber::create(this, SVGNames::k2Attr, SVGNumber::create()))
@@ -63,6 +63,8 @@ SVGFECompositeElement::SVGFECompositeElement(Document& document)
addToPropertyMap(m_svgOperator);
}
+DEFINE_NODE_FACTORY(SVGFECompositeElement)
+
bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
« no previous file with comments | « Source/core/svg/SVGFECompositeElement.h ('k') | Source/core/svg/SVGFEConvolveMatrixElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698