summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGFEDiffuseLightingElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGFEDiffuseLightingElement.cpp')
-rw-r--r--WebCore/svg/SVGFEDiffuseLightingElement.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/WebCore/svg/SVGFEDiffuseLightingElement.cpp b/WebCore/svg/SVGFEDiffuseLightingElement.cpp
index 81144c6..8c7e7ed 100644
--- a/WebCore/svg/SVGFEDiffuseLightingElement.cpp
+++ b/WebCore/svg/SVGFEDiffuseLightingElement.cpp
@@ -35,15 +35,16 @@ namespace WebCore {
char SVGKernelUnitLengthXIdentifier[] = "SVGKernelUnitLengthX";
char SVGKernelUnitLengthYIdentifier[] = "SVGKernelUnitLengthY";
-SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const QualifiedName& tagName, Document* doc)
- : SVGFilterPrimitiveStandardAttributes(tagName, doc)
- , m_diffuseConstant(1.0f)
- , m_surfaceScale(1.0f)
+inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const QualifiedName& tagName, Document* document)
+ : SVGFilterPrimitiveStandardAttributes(tagName, document)
+ , m_diffuseConstant(1)
+ , m_surfaceScale(1)
{
}
-SVGFEDiffuseLightingElement::~SVGFEDiffuseLightingElement()
+PassRefPtr<SVGFEDiffuseLightingElement> SVGFEDiffuseLightingElement::create(const QualifiedName& tagName, Document* document)
{
+ return adoptRef(new SVGFEDiffuseLightingElement(tagName, document));
}
void SVGFEDiffuseLightingElement::parseMappedAttribute(Attribute* attr)