Index: Source/core/rendering/EllipsisBox.cpp |
diff --git a/Source/core/rendering/EllipsisBox.cpp b/Source/core/rendering/EllipsisBox.cpp |
index cd35c3d2e88526bc17797c4b35d4f48bf62abffe..9b292b7f36c3bc766485bb45f797bec65f4cb97b 100644 |
--- a/Source/core/rendering/EllipsisBox.cpp |
+++ b/Source/core/rendering/EllipsisBox.cpp |
@@ -67,17 +67,17 @@ void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, La |
const ShadowList* shadowList = context->printing() ? 0 : style->textShadow(); |
bool hasShadow = shadowList; |
if (hasShadow) { |
- DrawLooper drawLooper; |
+ DrawLooper::Builder drawLooperBuilder; |
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); |
- drawLooper.addShadow(offset, shadow.blur(), shadow.color(), |
+ drawLooperBuilder.addShadow(offset, shadow.blur(), shadow.color(), |
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha); |
} |
- drawLooper.addUnmodifiedContent(); |
- context->setDrawLooper(drawLooper); |
+ drawLooperBuilder.addUnmodifiedContent(); |
+ context->setDrawLooper(*drawLooperBuilder.detachDrawLooper()); |
} |
TextRun textRun = RenderBlockFlow::constructTextRun(renderer(), font, m_str, style, TextRun::AllowTrailingExpansion); |