Index: Source/core/svg/graphics/filters/SVGFilterBuilder.cpp |
diff --git a/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp b/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp |
index 5c3104812fcc423ebac0aab967cda1757de4d8b6..a032ced8955bf4a00af58d009d31da8dca2896f4 100644 |
--- a/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp |
+++ b/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp |
@@ -25,10 +25,11 @@ |
namespace blink { |
-SVGFilterBuilder::SVGFilterBuilder(PassRefPtrWillBeRawPtr<FilterEffect> sourceGraphic, PassRefPtrWillBeRawPtr<FilterEffect> sourceAlpha) |
+SVGFilterBuilder::SVGFilterBuilder(PassRefPtrWillBeRawPtr<FilterEffect> sourceGraphic) |
{ |
- m_builtinEffects.add(SourceGraphic::effectName(), sourceGraphic); |
- m_builtinEffects.add(SourceAlpha::effectName(), sourceAlpha); |
+ RefPtrWillBeRawPtr<FilterEffect> sourceGraphicRef = sourceGraphic; |
+ m_builtinEffects.add(SourceGraphic::effectName(), sourceGraphicRef); |
+ m_builtinEffects.add(SourceAlpha::effectName(), SourceAlpha::create(sourceGraphicRef.get())); |
addBuiltinEffects(); |
} |