Index: Source/core/rendering/svg/SVGInlineTextBox.cpp |
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
index 939feb577d140caf08573d08728ee269e22d5d22..434d6e10af82da33a4192672e834fb2f9eee5113 100644 |
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp |
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
@@ -41,7 +41,6 @@ |
#include "core/rendering/svg/SVGTextRunRenderingContext.h" |
#include "platform/FloatConversion.h" |
#include "platform/fonts/FontCache.h" |
-#include "platform/graphics/DrawLooperBuilder.h" |
#include "platform/graphics/GraphicsContextStateSaver.h" |
namespace WebCore { |
@@ -633,17 +632,8 @@ void SVGInlineTextBox::paintTextWithShadows(GraphicsContext* context, RenderStyl |
context->scale(1 / scalingFactor, 1 / scalingFactor); |
} |
- if (hasShadow) { |
- OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create(); |
- for (size_t i = shadowList->shadows().size(); i--; ) { |
- const ShadowData& shadow = shadowList->shadows()[i]; |
- FloatSize offset(shadow.x(), shadow.y()); |
- drawLooperBuilder->addShadow(offset, shadow.blur(), shadow.color(), |
- DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowRespectsAlpha); |
- } |
- drawLooperBuilder->addUnmodifiedContent(); |
- context->setDrawLooper(drawLooperBuilder.release()); |
- } |
+ if (hasShadow) |
+ context->setDrawLooper(shadowList->createDrawLooper(DrawLooperBuilder::ShadowRespectsAlpha)); |
if (prepareGraphicsContextForTextPainting(context, scalingFactor, textRun, style, resourceMode)) { |
TextRunPaintInfo textRunPaintInfo(textRun); |