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

Unified Diff: third_party/WebKit/Source/core/paint/TextPainter.cpp

Issue 2594983002: Don't paint underline or selections over ellipsis in mixed-flow contexts (Closed)
Patch Set: bug 642454 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/TextPainter.h ('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/paint/TextPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/TextPainter.cpp b/third_party/WebKit/Source/core/paint/TextPainter.cpp
index 95c02bdc54bdc641501c9078a7330a6fae5dbfce..36a1f3b13d24943015abf1ef5f64399c8f200948 100644
--- a/third_party/WebKit/Source/core/paint/TextPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/TextPainter.cpp
@@ -36,7 +36,8 @@ TextPainter::TextPainter(GraphicsContext& context,
m_textBounds(textBounds),
m_horizontal(horizontal),
m_emphasisMarkOffset(0),
- m_combinedText(0) {}
+ m_combinedText(0),
+ m_ellipsisOffset(0) {}
TextPainter::~TextPainter() {}
@@ -247,7 +248,7 @@ void TextPainter::paintInternal(unsigned startOffset,
paintInternalRun<Step>(textRunPaintInfo, startOffset, endOffset);
} else {
if (endOffset > 0)
- paintInternalRun<Step>(textRunPaintInfo, 0, endOffset);
+ paintInternalRun<Step>(textRunPaintInfo, m_ellipsisOffset, endOffset);
if (startOffset < truncationPoint)
paintInternalRun<Step>(textRunPaintInfo, startOffset, truncationPoint);
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/TextPainter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698