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

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

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
Index: third_party/WebKit/Source/core/paint/TextPainter.h
diff --git a/third_party/WebKit/Source/core/paint/TextPainter.h b/third_party/WebKit/Source/core/paint/TextPainter.h
index 48a87e9f4b2c2c1a0c0184cfebf8b6fb3cd9c8ee..a3d1de2ba5473b27d3d3da17de202d5bd3f67385 100644
--- a/third_party/WebKit/Source/core/paint/TextPainter.h
+++ b/third_party/WebKit/Source/core/paint/TextPainter.h
@@ -47,6 +47,7 @@ class CORE_EXPORT TextPainter {
void setCombinedText(LayoutTextCombine* combinedText) {
m_combinedText = combinedText;
}
+ void setEllipsisOffset(int offset) { m_ellipsisOffset = offset; }
static void updateGraphicsContext(GraphicsContext&,
const Style&,
@@ -117,6 +118,7 @@ class CORE_EXPORT TextPainter {
AtomicString m_emphasisMark;
int m_emphasisMarkOffset;
LayoutTextCombine* m_combinedText;
+ int m_ellipsisOffset;
};
inline AffineTransform TextPainter::rotation(
« no previous file with comments | « third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp ('k') | third_party/WebKit/Source/core/paint/TextPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698