Changeset 150065 in webkit
- Timestamp:
- May 14, 2013, 5:27:03 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/text-overflow-ellipsis-full-truncate-rtl-expected.html (added)
-
LayoutTests/fast/css/text-overflow-ellipsis-full-truncate-rtl.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/InlineTextBox.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r150061 r150065 1 2013-05-14 Zalan Bujtas <zalan@apple.com> 2 3 Ellipsis text is placed to wrong position, when the truncated text is fully cut off in RTL direction. 4 https://bugs.webkit.org/show_bug.cgi?id=115858 5 6 Reviewed by Darin Adler. 7 8 * fast/css/text-overflow-ellipsis-full-truncate-rtl-expected.html: Added. 9 * fast/css/text-overflow-ellipsis-full-truncate-rtl.html: Added. 10 1 11 2013-05-14 Zoltan Arvai <zarvai@inf.u-szeged.hu> 2 12 -
trunk/Source/WebCore/ChangeLog
r150062 r150065 1 2013-05-14 Zalan Bujtas <zalan@apple.com> 2 3 Ellipsis text is placed to wrong position, when the truncated text is fully cut off in RTL direction. 4 https://bugs.webkit.org/show_bug.cgi?id=115858 5 6 Reviewed by Darin Adler. 7 8 Take text direction into account to calculate ellipsis position in case of 9 full truncation. 10 11 Test: fast/css/text-overflow-ellipsis-full-truncate-rtl.html 12 13 * rendering/InlineTextBox.cpp: 14 (WebCore::InlineTextBox::placeEllipsisBox): 15 1 16 2013-05-14 Carlos Garcia Campos <cgarcia@igalia.com> 2 17 -
trunk/Source/WebCore/rendering/InlineTextBox.cpp
r149673 r150065 290 290 m_truncation = cFullTruncation; 291 291 truncatedWidth += ellipsisWidth; 292 return min(ellipsisX, x());292 return flowIsLTR ? min(ellipsisX, x()) : max(ellipsisX, right() - ellipsisWidth); 293 293 } 294 294
Note:
See TracChangeset
for help on using the changeset viewer.