| Index: Source/core/rendering/InlineTextBox.cpp
|
| diff --git a/Source/core/rendering/InlineTextBox.cpp b/Source/core/rendering/InlineTextBox.cpp
|
| index 7287d000279ac5e1797ae2b4ca25f6255d2e1ff8..bfa9007d7d551cfe4da06bcdc2c61cce37a66d59 100644
|
| --- a/Source/core/rendering/InlineTextBox.cpp
|
| +++ b/Source/core/rendering/InlineTextBox.cpp
|
| @@ -396,17 +396,17 @@ static void paintTextWithShadows(GraphicsContext* context,
|
| Color fillColor = context->fillColor();
|
|
|
| if (hasShadow) {
|
| - DrawLooper drawLooper;
|
| + RefPtr<DrawLooper> drawLooper = adoptRef(new DrawLooper);
|
| do {
|
| int shadowX = horizontal ? shadow->x() : shadow->y();
|
| int shadowY = horizontal ? shadow->y() : -shadow->x();
|
| FloatSize offset(shadowX, shadowY);
|
| - drawLooper.addShadow(offset, shadow->blur(),
|
| + drawLooper->addShadow(offset, shadow->blur(),
|
| renderer->resolveColor(shadow->color(), Color::stdShadowColor),
|
| DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha);
|
| } while ((shadow = shadow->next()));
|
| - drawLooper.addUnmodifiedContent();
|
| - context->setDrawLooper(drawLooper);
|
| + drawLooper->addUnmodifiedContent();
|
| + context->setDrawLooper(drawLooper.release());
|
| }
|
|
|
| TextRunPaintInfo textRunPaintInfo(textRun);
|
|
|