summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGFEBlendElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGFEBlendElement.cpp')
-rw-r--r--WebCore/svg/SVGFEBlendElement.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebCore/svg/SVGFEBlendElement.cpp b/WebCore/svg/SVGFEBlendElement.cpp
index 451b7d1..c4d816b 100644
--- a/WebCore/svg/SVGFEBlendElement.cpp
+++ b/WebCore/svg/SVGFEBlendElement.cpp
@@ -87,7 +87,12 @@ PassRefPtr<FilterEffect> SVGFEBlendElement::build(SVGFilterBuilder* filterBuilde
if (!input1 || !input2)
return 0;
- return FEBlend::create(input1, input2, static_cast<BlendModeType>(mode()));
+ RefPtr<FilterEffect> effect = FEBlend::create(static_cast<BlendModeType>(mode()));
+ FilterEffectVector& inputEffects = effect->inputEffects();
+ inputEffects.reserveCapacity(2);
+ inputEffects.append(input1);
+ inputEffects.append(input2);
+ return effect.release();
}
}