Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(650)

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp

Issue 2702043002: Use LayoutUnit for positioning ellipses (Closed)
Patch Set: bug 693905-2 Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698