diff options
author | Rene Ladan <rene@FreeBSD.org> | 2020-01-16 20:59:10 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2020-01-16 20:59:10 +0000 |
commit | b1f54f0fc1fb0cc165a0576e0903efc1ea241ef3 (patch) | |
tree | de284d6e6fac9a05189b48ba453d2e271bbb5e30 /www/chromium/files/patch-ui_gfx_font__util.cc | |
parent | databases/py-asyncpg: Update to 0.20.1 (diff) |
www/chromium: update to 79.0.3945.117
Submitted by: Matthias Wolf via GitHub
Pull requests: 169, 170
MFH: 2019Q2 (browser, security)
Diffstat (limited to 'www/chromium/files/patch-ui_gfx_font__util.cc')
-rw-r--r-- | www/chromium/files/patch-ui_gfx_font__util.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www/chromium/files/patch-ui_gfx_font__util.cc b/www/chromium/files/patch-ui_gfx_font__util.cc new file mode 100644 index 000000000000..70270c4ee997 --- /dev/null +++ b/www/chromium/files/patch-ui_gfx_font__util.cc @@ -0,0 +1,25 @@ +--- ui/gfx/font_util.cc.orig 2019-12-17 19:58:26 UTC ++++ ui/gfx/font_util.cc +@@ -6,7 +6,7 @@ + + #include "build/build_config.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include <fontconfig/fontconfig.h> + #include "ui/gfx/linux/fontconfig_util.h" + #endif +@@ -24,11 +24,11 @@ void InitializeFonts() { + // background (resources have not yet been granted to cast) since it prevents + // the long delay the user would have seen on first rendering. + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // Ensures the config is created on this thread. + FcConfig* config = GetGlobalFontConfig(); + DCHECK(config); +-#endif // OS_LINUX ++#endif // OS_LINUX || OS_BSD + + #if defined(OS_WIN) + gfx::win::InitializeDirectWrite(); |