Index: Source/core/svg/SVGFEDisplacementMapElement.cpp |
diff --git a/Source/core/svg/SVGFEDisplacementMapElement.cpp b/Source/core/svg/SVGFEDisplacementMapElement.cpp |
index b1f8f3ce34f3049a1bcbf54d79733a00a3035855..9b02fd4adbca44ac39f4b74e4dd56f10a0c65294 100644 |
--- a/Source/core/svg/SVGFEDisplacementMapElement.cpp |
+++ b/Source/core/svg/SVGFEDisplacementMapElement.cpp |
@@ -54,6 +54,16 @@ inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(Document& docume |
addToPropertyMap(m_yChannelSelector); |
} |
+void SVGFEDisplacementMapElement::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_scale); |
+ visitor->trace(m_in1); |
+ visitor->trace(m_in2); |
+ visitor->trace(m_xChannelSelector); |
+ visitor->trace(m_yChannelSelector); |
+ SVGFilterPrimitiveStandardAttributes::trace(visitor); |
+} |
+ |
DEFINE_NODE_FACTORY(SVGFEDisplacementMapElement) |
bool SVGFEDisplacementMapElement::isSupportedAttribute(const QualifiedName& attrName) |
@@ -110,7 +120,7 @@ void SVGFEDisplacementMapElement::svgAttributeChanged(const QualifiedName& attrN |
ASSERT_NOT_REACHED(); |
} |
-PassRefPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* filterBuilder, Filter* filter) |
+PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* filterBuilder, Filter* filter) |
{ |
FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value())); |
FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->currentValue()->value())); |
@@ -118,7 +128,7 @@ PassRefPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* fi |
if (!input1 || !input2) |
return nullptr; |
- RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSelector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumValue(), m_scale->currentValue()->value()); |
+ RefPtrWillBeRawPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSelector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumValue(), m_scale->currentValue()->value()); |
FilterEffectVector& inputEffects = effect->inputEffects(); |
inputEffects.reserveCapacity(2); |
inputEffects.append(input1); |