Index: Source/core/rendering/InlineTextBox.cpp |
diff --git a/Source/core/rendering/InlineTextBox.cpp b/Source/core/rendering/InlineTextBox.cpp |
index 7b55b5fc55c662ae9ab3a7e9b769ff4178c5d5a2..dcb093c0379302ef922e0d75d88c12ff06442363 100644 |
--- a/Source/core/rendering/InlineTextBox.cpp |
+++ b/Source/core/rendering/InlineTextBox.cpp |
@@ -46,7 +46,7 @@ |
#include "core/rendering/svg/SVGTextRunRenderingContext.h" |
#include "platform/fonts/FontCache.h" |
#include "platform/fonts/WidthIterator.h" |
-#include "platform/graphics/DrawLooper.h" |
+#include "platform/graphics/DrawLooperBuilder.h" |
#include "platform/graphics/GraphicsContextStateSaver.h" |
#include "wtf/Vector.h" |
#include "wtf/text/CString.h" |
@@ -396,17 +396,17 @@ static void paintTextWithShadows(GraphicsContext* context, |
bool hasShadow = shadowList && !context->printing(); |
if (hasShadow) { |
- DrawLooper drawLooper; |
+ OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create(); |
for (size_t i = shadowList->shadows().size(); i--; ) { |
const ShadowData& shadow = shadowList->shadows()[i]; |
float shadowX = horizontal ? shadow.x() : shadow.y(); |
float shadowY = horizontal ? shadow.y() : -shadow.x(); |
FloatSize offset(shadowX, shadowY); |
- drawLooper.addShadow(offset, shadow.blur(), shadow.color(), |
- DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha); |
+ drawLooperBuilder->addShadow(offset, shadow.blur(), shadow.color(), |
+ DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha); |
} |
- drawLooper.addUnmodifiedContent(); |
- context->setDrawLooper(drawLooper); |
+ drawLooperBuilder->addUnmodifiedContent(); |
+ context->setDrawLooper(drawLooperBuilder.release()); |
} |
TextRunPaintInfo textRunPaintInfo(textRun); |