Index: Source/core/rendering/svg/SVGInlineTextBox.cpp |
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
index df21423a788c2ce10a71a0d3625cd1597a5fcbe8..e2e65a26887f0def5442906fcda90e7e6939bdba 100644 |
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp |
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
@@ -639,15 +639,15 @@ void SVGInlineTextBox::paintTextWithShadows(GraphicsContext* context, RenderStyl |
} |
if (hasShadow) { |
- DrawLooper drawLooper; |
+ DrawLooper::Builder drawLooperBuilder; |
for (size_t i = shadowList->shadows().size(); i--; ) { |
const ShadowData& shadow = shadowList->shadows()[i]; |
FloatSize offset(shadow.x(), shadow.y()); |
- drawLooper.addShadow(offset, shadow.blur(), shadow.color(), |
+ drawLooperBuilder.addShadow(offset, shadow.blur(), shadow.color(), |
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowRespectsAlpha); |
} |
- drawLooper.addUnmodifiedContent(); |
- context->setDrawLooper(drawLooper); |
+ drawLooperBuilder.addUnmodifiedContent(); |
+ context->setDrawLooper(*drawLooperBuilder.detachDrawLooper().get()); |
} |
if (prepareGraphicsContextForTextPainting(context, scalingFactor, textRun, style)) { |