Index: third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp |
index e3885f0755b135bd250fbe5e610bb7ced35eaad9..86bfacf388058060ca34500ba9087e8c635a6bb3 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp |
@@ -140,9 +140,7 @@ PassRefPtrWillBeRawPtr<FilterEffect> SVGFEBlendElement::build(SVGFilterBuilder* |
{ |
FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value())); |
FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->currentValue()->value())); |
- |
- if (!input1 || !input2) |
- return nullptr; |
+ ASSERT(input1 && input2); |
RefPtrWillBeRawPtr<FilterEffect> effect = FEBlend::create(filter, toWebBlendMode(m_mode->currentValue()->enumValue())); |
FilterEffectVector& inputEffects = effect->inputEffects(); |