aboutsummaryrefslogtreecommitdiff
path: root/devel/electron18/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron18/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc')
-rw-r--r--devel/electron18/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron18/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc b/devel/electron18/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc
new file mode 100644
index 000000000000..2a074d12fa92
--- /dev/null
+++ b/devel/electron18/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc
@@ -0,0 +1,20 @@
+--- third_party/blink/renderer/platform/fonts/font_description.cc.orig 2022-05-19 03:45:47 UTC
++++ third_party/blink/renderer/platform/fonts/font_description.cc
+@@ -39,7 +39,7 @@
+ #include "third_party/blink/renderer/platform/wtf/text/string_hash.h"
+ #include "third_party/blink/renderer/platform/wtf/text/string_hasher.h"
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
+ #include "third_party/blink/renderer/platform/fonts/font_cache.h"
+ #endif
+
+@@ -262,7 +262,7 @@ FontCacheKey FontDescription::CacheKey(
+ static_cast<unsigned>(fields_.orientation_) << 1 | // bit 2-3
+ static_cast<unsigned>(fields_.subpixel_text_position_); // bit 1
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ float device_scale_factor_for_key = FontCache::DeviceScaleFactor();
+ #else
+ float device_scale_factor_for_key = 1.0f;