2023-08-16 22:26:55 +00:00
|
|
|
Index: ui/gfx/canvas_skia.cc
|
|
|
|
--- ui/gfx/canvas_skia.cc.orig
|
|
|
|
+++ ui/gfx/canvas_skia.cc
|
2023-09-14 00:49:35 +00:00
|
|
|
@@ -212,7 +212,7 @@ void Canvas::DrawStringRectWithFlags(const std::u16str
|
2023-08-16 22:26:55 +00:00
|
|
|
Range range = StripAcceleratorChars(flags, &adjusted_text);
|
|
|
|
bool elide_text = ((flags & NO_ELLIPSIS) == 0);
|
|
|
|
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
|
|
// On Linux, eliding really means fading the end of the string. But only
|
|
|
|
// for LTR text. RTL text is still elided (on the left) with "...".
|
|
|
|
if (elide_text) {
|