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

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

Issue 2651123005: Place ellipsis correctly in presence of list markers (Closed)
Patch Set: bug 645938 Created 3 years, 11 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/InlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
index 97ae55243db8cc510f9eb2ca5260d0f5ce307bd7..7acdb22dc3cdc41c3b1964250ba65fae6421248c 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
@@ -308,7 +308,9 @@ bool InlineBox::canAccommodateEllipsis(bool ltr,
int blockEdge,
int ellipsisWidth) const {
// Non-atomic inline-level elements can always accommodate an ellipsis.
- if (!getLineLayoutItem().isAtomicInlineLevel())
+ // Skip list markers and try the next box.
+ if (!getLineLayoutItem().isAtomicInlineLevel() ||
+ getLineLayoutItem().isListMarker())
return true;
IntRect boxRect(x().toInt(), 0, m_logicalWidth.toInt(), 10);

Powered by Google App Engine
This is Rietveld 408576698