Index: Source/core/rendering/InlineTextBox.cpp |
diff --git a/Source/core/rendering/InlineTextBox.cpp b/Source/core/rendering/InlineTextBox.cpp |
index b17956b34977f8ea764c4d7151ace429b2c85b2d..d36b8b4c49f6af4c5c4e2853ac0735c81c511ac1 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/DrawLooperBuilder.h" |
+#include "platform/graphics/DrawLooper.h" |
#include "platform/graphics/GraphicsContextStateSaver.h" |
#include "wtf/Vector.h" |
#include "wtf/text/CString.h" |
@@ -397,17 +397,17 @@ |
bool hasShadow = shadowList && !context->printing(); |
if (hasShadow) { |
- OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create(); |
+ DrawLooper drawLooper; |
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); |
- drawLooperBuilder->addShadow(offset, shadow.blur(), shadow.color(), |
- DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha); |
- } |
- drawLooperBuilder->addUnmodifiedContent(); |
- context->setDrawLooper(drawLooperBuilder.release()); |
+ drawLooper.addShadow(offset, shadow.blur(), shadow.color(), |
+ DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha); |
+ } |
+ drawLooper.addUnmodifiedContent(); |
+ context->setDrawLooper(drawLooper); |
} |
TextRunPaintInfo textRunPaintInfo(textRun); |