| Index: Source/core/rendering/EllipsisBox.cpp
|
| diff --git a/Source/core/rendering/EllipsisBox.cpp b/Source/core/rendering/EllipsisBox.cpp
|
| index cba5f730889ffdc1a13f3930945693531da04558..cd35c3d2e88526bc17797c4b35d4f48bf62abffe 100644
|
| --- a/Source/core/rendering/EllipsisBox.cpp
|
| +++ b/Source/core/rendering/EllipsisBox.cpp
|
| @@ -27,7 +27,7 @@
|
| #include "core/rendering/RootInlineBox.h"
|
| #include "core/rendering/style/ShadowList.h"
|
| #include "platform/fonts/Font.h"
|
| -#include "platform/graphics/DrawLooperBuilder.h"
|
| +#include "platform/graphics/DrawLooper.h"
|
| #include "platform/graphics/GraphicsContextStateSaver.h"
|
| #include "platform/text/TextRun.h"
|
|
|
| @@ -67,17 +67,17 @@
|
| const ShadowList* shadowList = context->printing() ? 0 : style->textShadow();
|
| bool hasShadow = shadowList;
|
| 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 = isHorizontal() ? shadow.x() : shadow.y();
|
| float shadowY = isHorizontal() ? shadow.y() : -shadow.x();
|
| FloatSize offset(shadowX, shadowY);
|
| - drawLooperBuilder->addShadow(offset, shadow.blur(), shadow.color(),
|
| - DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha);
|
| + drawLooper.addShadow(offset, shadow.blur(), shadow.color(),
|
| + DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha);
|
| }
|
| - drawLooperBuilder->addUnmodifiedContent();
|
| - context->setDrawLooper(drawLooperBuilder.release());
|
| + drawLooper.addUnmodifiedContent();
|
| + context->setDrawLooper(drawLooper);
|
| }
|
|
|
| TextRun textRun = RenderBlockFlow::constructTextRun(renderer(), font, m_str, style, TextRun::AllowTrailingExpansion);
|
|
|