| Index: Source/core/rendering/EllipsisBox.cpp
|
| diff --git a/Source/core/rendering/EllipsisBox.cpp b/Source/core/rendering/EllipsisBox.cpp
|
| index 8819e285389df051122421835805123ebe0eb190..b7611c1d20d834f490d213870c7eaa4336dc4bd0 100644
|
| --- a/Source/core/rendering/EllipsisBox.cpp
|
| +++ b/Source/core/rendering/EllipsisBox.cpp
|
| @@ -57,7 +57,13 @@ 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());
|
| + TextRun textRun = RenderBlock::constructTextRun(renderer(), font, m_str, style, TextRun::AllowTrailingExpansion);
|
| + TextRunPaintInfo textRunPaintInfo(textRun);
|
| + textRunPaintInfo.bounds = FloatRect(boxOrigin, FloatSize(logicalWidth(), logicalHeight()));
|
| + context->drawText(font, textRunPaintInfo, textOrigin);
|
|
|
| // Restore the regular fill color.
|
| if (textColor != context->fillColor())
|
|
|