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

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

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Added 2 changes in mac files 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
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 0dbf55c9d824a9a274c7926f7e30170c133a3824..b19d47356b7b52f3bd9a7d9cd348f2efb899895f 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
@@ -381,7 +381,8 @@ LayoutUnit InlineTextBox::placeEllipsisBox(bool flowIsLTR,
LayoutUnit widthOfVisibleText(getLineLayoutItem().width(
ltr == flowIsLTR ? m_start : m_start + offset,
ltr == flowIsLTR ? offset : m_len - offset, textPos(),
- flowIsLTR ? LTR : RTL, isFirstLineStyle()));
+ flowIsLTR ? TextDirection::Ltr : TextDirection::Rtl,
+ isFirstLineStyle()));
// The ellipsis needs to be placed just after the last visible character.
// Where "after" is defined by the flow directionality, not the inline

Powered by Google App Engine
This is Rietveld 408576698