summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/patch-ui_gfx_canvas_skia_cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/patch-ui_gfx_canvas_skia_cc')
-rw-r--r--www/chromium-uc/patches/patch-ui_gfx_canvas_skia_cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/patch-ui_gfx_canvas_skia_cc b/www/chromium-uc/patches/patch-ui_gfx_canvas_skia_cc
new file mode 100644
index 0000000..5dc92ad
--- /dev/null
+++ b/www/chromium-uc/patches/patch-ui_gfx_canvas_skia_cc
@@ -0,0 +1,14 @@
1$OpenBSD: patch-ui_gfx_canvas_skia_cc,v 1.23 2021/09/01 16:54:41 robert Exp $
2
3Index: ui/gfx/canvas_skia.cc
4--- ui/gfx/canvas_skia.cc.orig
5+++ ui/gfx/canvas_skia.cc
6@@ -209,7 +209,7 @@ void Canvas::DrawStringRectWithFlags(const std::u16str
7 Range range = StripAcceleratorChars(flags, &adjusted_text);
8 bool elide_text = ((flags & NO_ELLIPSIS) == 0);
9
10-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
11+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
12 // On Linux, eliding really means fading the end of the string. But only
13 // for LTR text. RTL text is still elided (on the left) with "...".
14 if (elide_text) {