Index: Source/core/paint/SVGFilterPainter.cpp |
diff --git a/Source/core/paint/SVGFilterPainter.cpp b/Source/core/paint/SVGFilterPainter.cpp |
index b5a327e0803cde27c15c4f2493300954f68e08fc..a7c32b3ab7e219061701b0ec4e08e4c4402f9254 100644 |
--- a/Source/core/paint/SVGFilterPainter.cpp |
+++ b/Source/core/paint/SVGFilterPainter.cpp |
@@ -68,12 +68,11 @@ static void endRecordingContent(GraphicsContext* context, FilterData* filterData |
static void paintFilteredContent(GraphicsContext* context, FilterData* filterData, SVGFilterElement* filterElement) |
{ |
ASSERT(filterData->m_state == FilterData::ReadyToPaint); |
+ ASSERT(filterData->builder->getEffectById(SourceGraphic::effectName())); |
+ |
filterData->m_state = FilterData::PaintingFilter; |
SkiaImageFilterBuilder builder(context); |
- SourceGraphic* sourceGraphic = static_cast<SourceGraphic*>(filterData->builder->getEffectById(SourceGraphic::effectName())); |
- ASSERT(sourceGraphic); |
- builder.setSourceGraphic(sourceGraphic); |
RefPtr<SkImageFilter> imageFilter = builder.build(filterData->builder->lastEffect(), ColorSpaceDeviceRGB); |
FloatRect boundaries = filterData->boundaries; |
context->save(); |