openbsd-ports/www/iridium/patches/patch-ui_gfx_canvas_skia_cc

14 lines
598 B
Plaintext

$OpenBSD: patch-ui_gfx_canvas_skia_cc,v 1.15 2020/04/02 15:11:59 robert Exp $
Index: ui/gfx/canvas_skia.cc
--- ui/gfx/canvas_skia.cc.orig
+++ ui/gfx/canvas_skia.cc
@@ -206,7 +206,7 @@ void Canvas::DrawStringRectWithFlags(const base::strin
Range range = StripAcceleratorChars(flags, &adjusted_text);
bool elide_text = ((flags & NO_ELLIPSIS) == 0);
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_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) {