diff options
author | Robert Nagy <robert@openbsd.org> | 2022-03-29 20:42:38 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2022-03-29 21:12:41 +0000 |
commit | d2c7aaaca13965ed2f7b6d3bd4930b5561fdf682 (patch) | |
tree | af8ff48b5ed19039f09ff491783c4d806738009f /www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__metrics.cc | |
parent | adbcbf8a27257b951a8e2fc30cf2f6027c800180 (diff) | |
download | ports-d2c7aaaca13965ed2f7b6d3bd4930b5561fdf682.tar.gz ports-d2c7aaaca13965ed2f7b6d3bd4930b5561fdf682.zip |
www/chromium: update to 100.0.4896.60
Enable some more unit tests.
Security: ab2d7f62-af9d-11ec-a0b8-3065ec8fd3ec
(cherry picked from commit 1e683edf9a258d43c95b485ad96f5c39860770cb)
Diffstat (limited to 'www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__metrics.cc')
-rw-r--r-- | www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__metrics.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__metrics.cc b/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__metrics.cc index f088cbe72cd7..d360fa692560 100644 --- a/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__metrics.cc +++ b/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__metrics.cc @@ -1,29 +1,29 @@ ---- third_party/blink/renderer/platform/fonts/font_metrics.cc.orig 2022-02-07 13:39:41 UTC +--- third_party/blink/renderer/platform/fonts/font_metrics.cc.orig 2022-03-25 21:59:56 UTC +++ third_party/blink/renderer/platform/fonts/font_metrics.cc @@ -39,7 +39,7 @@ namespace blink { - #if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || \ -- defined(OS_FUCHSIA) -+ defined(OS_FUCHSIA) || defined(OS_BSD) + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ +- BUILDFLAG(IS_FUCHSIA) ++ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) // This is the largest VDMX table which we'll try to load and parse. static const size_t kMaxVDMXTableSize = 1024 * 1024; // 1 MB #endif @@ -69,7 +69,7 @@ void FontMetrics::AscentDescentWithHacks( bool is_vdmx_valid = false; - #if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || \ -- defined(OS_FUCHSIA) -+ defined(OS_FUCHSIA) || defined(OS_BSD) + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ +- BUILDFLAG(IS_FUCHSIA) ++ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) // Manually digging up VDMX metrics is only applicable when bytecode hinting // using FreeType. With DirectWrite or CoreText, no bytecode hinting is ever // done. This code should be pushed into FreeType (hinted font metrics). @@ -117,7 +117,7 @@ void FontMetrics::AscentDescentWithHacks( if (descent < metrics.fDescent) { visual_overflow_inflation_for_descent = 1; - #if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || \ -- defined(OS_FUCHSIA) -+ defined(OS_FUCHSIA) || defined(OS_BSD) + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ +- BUILDFLAG(IS_FUCHSIA) ++ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) // When subpixel positioning is enabled, if the descent is rounded down, // the descent part of the glyph may be truncated when displayed in a // 'overflow: hidden' container. To avoid that, borrow 1 unit from the |