Index: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
index 52969afabf52874daa927df4ea4f61e8f0fb7e85..5011d4aa2217c916060e096669c57eccb4a578d2 100644 |
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
@@ -361,7 +361,9 @@ LayoutUnit InlineTextBox::placeEllipsisBox(bool flowIsLTR, |
: logicalRight() - visibleBoxWidth; |
} |
- int offset = offsetForPosition(ellipsisX, false); |
+ // The box's width includes partial glyphs, so respect that when placing |
+ // the ellipsis. |
+ int offset = offsetForPosition(ellipsisX); |
if (offset == 0 && ltr == flowIsLTR) { |
// No characters should be laid out. Set ourselves to full truncation and |
// place the ellipsis at the min of our start and the ellipsis edge. |