Index: Source/core/rendering/svg/SVGInlineTextBox.cpp |
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
index 0a08afbed09a9e873c616604df0f4f3a0d79d424..ac889382b1b6de1e1ee835be831050ae103a66b6 100644 |
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp |
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
@@ -638,14 +638,14 @@ void SVGInlineTextBox::paintTextWithShadows(GraphicsContext* context, RenderStyl |
} |
if (hasShadow) { |
- DrawLooper drawLooper; |
+ RefPtr<DrawLooper> drawLooper = adoptRef(new DrawLooper); |
do { |
FloatSize offset(shadow->x(), shadow->y()); |
- drawLooper.addShadow(offset, shadow->blur(), textRenderer->resolveColor(shadow->color(), Color::stdShadowColor), |
+ drawLooper->addShadow(offset, shadow->blur(), textRenderer->resolveColor(shadow->color(), Color::stdShadowColor), |
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowRespectsAlpha); |
} while ((shadow = shadow->next())); |
- drawLooper.addUnmodifiedContent(); |
- context->setDrawLooper(drawLooper); |
+ drawLooper->addUnmodifiedContent(); |
+ context->setDrawLooper(drawLooper.release()); |
} |
if (prepareGraphicsContextForTextPainting(context, scalingFactor, textRun, style)) { |