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 4b12c77613e553b002acb1d6ba8d41e8a3933fcc..ab890d4605627b82e53d8fdba1727da2ab681ec9 100644 |
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
@@ -354,8 +354,8 @@ LayoutUnit InlineTextBox::placeEllipsisBox(bool flowIsLTR, |
if (ltr != flowIsLTR) { |
// Width in pixels of the visible portion of the box, excluding the |
// ellipsis. |
- int visibleBoxWidth = |
- (visibleRightEdge - visibleLeftEdge - ellipsisWidth).toInt(); |
+ LayoutUnit visibleBoxWidth = |
+ visibleRightEdge - visibleLeftEdge - ellipsisWidth; |
ellipsisX = flowIsLTR ? logicalLeft() + visibleBoxWidth |
: logicalRight() - visibleBoxWidth; |
} |