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

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

Issue 2529243002: Skip leading space in ltr text in rtl flow when placing ellipsis (Closed)
Patch Set: bug 667128 Created 4 years 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
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/linux/fast/text/ellipsis-mixed-text-in-ltr-flow-underline-expected.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e71d430f8282730ba003d72e1876662196616c5b..23c51b884f6c5aecc6da1764aa22f529fb9a6723 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
@@ -379,7 +379,7 @@ LayoutUnit InlineTextBox::placeEllipsisBox(bool flowIsLTR,
// text and its flow have opposite directions then our offset into the text
// is at the start of the part that will be visible.
LayoutUnit widthOfVisibleText(getLineLayoutItem().width(
- ltr == flowIsLTR ? m_start : offset,
+ ltr == flowIsLTR ? m_start : m_start + offset,
ltr == flowIsLTR ? offset : m_len - offset, textPos(),
flowIsLTR ? LTR : RTL, isFirstLineStyle()));
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/linux/fast/text/ellipsis-mixed-text-in-ltr-flow-underline-expected.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698