| Index: Source/core/rendering/EllipsisBox.cpp
|
| diff --git a/Source/core/rendering/EllipsisBox.cpp b/Source/core/rendering/EllipsisBox.cpp
|
| index 088297a023df7bb065c834706561821c6d56d0a1..c4b9cd05ba1068f60223443769449f87af0bb266 100644
|
| --- a/Source/core/rendering/EllipsisBox.cpp
|
| +++ b/Source/core/rendering/EllipsisBox.cpp
|
| @@ -57,7 +57,12 @@ void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, La
|
| }
|
|
|
| // FIXME: Why is this always LTR? Fix by passing correct text run flags below.
|
| - context->drawText(font, RenderBlock::constructTextRun(renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), LayoutPoint(x() + paintOffset.x(), y() + paintOffset.y() + style->fontMetrics().ascent()));
|
| + FloatPoint boxOrigin(paintOffset);
|
| + boxOrigin.move(x(), y());
|
| + FloatPoint textOrigin(boxOrigin.x(), boxOrigin.y() + style->fontMetrics().ascent());
|
| + FloatRect textRect(boxOrigin, FloatSize(logicalWidth(), logicalHeight()));
|
| + TextRun textRun = RenderBlock::constructTextRun(renderer(), font, m_str, style, TextRun::AllowTrailingExpansion);
|
| + context->drawText(font, textRun, textOrigin, textRect);
|
|
|
| // Restore the regular fill color.
|
| if (textColor != context->fillColor())
|
|
|