Index: Source/core/svg/SVGFEDiffuseLightingElement.cpp |
diff --git a/Source/core/svg/SVGFEDiffuseLightingElement.cpp b/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
index 0bdb70575442d3d85cc3fceb37e8c44c2d1617b7..375adb470f2d4de745c950d665534cfb37146d8c 100644 |
--- a/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
+++ b/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
@@ -42,6 +42,15 @@ inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(Document& docume |
addToPropertyMap(m_in1); |
} |
+void SVGFEDiffuseLightingElement::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_diffuseConstant); |
+ visitor->trace(m_surfaceScale); |
+ visitor->trace(m_kernelUnitLength); |
+ visitor->trace(m_in1); |
+ SVGFilterPrimitiveStandardAttributes::trace(visitor); |
+} |
+ |
DEFINE_NODE_FACTORY(SVGFEDiffuseLightingElement) |
bool SVGFEDiffuseLightingElement::isSupportedAttribute(const QualifiedName& attrName) |
@@ -134,7 +143,7 @@ void SVGFEDiffuseLightingElement::lightElementAttributeChanged(const SVGFELightE |
primitiveAttributeChanged(attrName); |
} |
-PassRefPtr<FilterEffect> SVGFEDiffuseLightingElement::build(SVGFilterBuilder* filterBuilder, Filter* filter) |
+PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDiffuseLightingElement::build(SVGFilterBuilder* filterBuilder, Filter* filter) |
{ |
FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value())); |
@@ -153,7 +162,7 @@ PassRefPtr<FilterEffect> SVGFEDiffuseLightingElement::build(SVGFilterBuilder* fi |
Color color = renderer->style()->svgStyle().lightingColor(); |
RefPtr<LightSource> lightSource = lightNode->lightSource(filter); |
- RefPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, color, m_surfaceScale->currentValue()->value(), m_diffuseConstant->currentValue()->value(), |
+ RefPtrWillBeRawPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, color, m_surfaceScale->currentValue()->value(), m_diffuseConstant->currentValue()->value(), |
kernelUnitLengthX()->currentValue()->value(), kernelUnitLengthY()->currentValue()->value(), lightSource.release()); |
effect->inputEffects().append(input1); |
return effect.release(); |