aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__palette.h
blob: 6f4dce7f030e8df398ab82d1dd17ec6ee264b2ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- third_party/blink/renderer/platform/fonts/font_palette.h.orig	2023-09-13 12:11:42 UTC
+++ third_party/blink/renderer/platform/fonts/font_palette.h
@@ -96,7 +96,11 @@ class PLATFORM_EXPORT FontPalette : public RefCounted<
       Color::ColorSpace color_interpolation_space,
       absl::optional<Color::HueInterpolationMethod> hue_interpolation_method) {
     return base::AdoptRef(new FontPalette(
+#if defined(__clang__) && (__clang_major__ >= 16)
         start, end, NonNormalizedPercentages(start_percentage, end_percentage),
+#else
+        start, end, NonNormalizedPercentages(NonNormalizedPercentages{start_percentage, end_percentage}),
+#endif
         normalized_percentage, alpha_multiplier, color_interpolation_space,
         hue_interpolation_method));
   }
@@ -170,7 +174,11 @@ class PLATFORM_EXPORT FontPalette : public RefCounted<
       double normalized_percentage) {
     double end_percentage = normalized_percentage * 100.0;
     double start_percentage = 100.0 - end_percentage;
+#if defined(__clang__) && (__clang_major__ >= 16)
     return NonNormalizedPercentages(start_percentage, end_percentage);
+#else
+    return NonNormalizedPercentages(NonNormalizedPercentages{start_percentage, end_percentage});
+#endif
   }
 
   double GetAlphaMultiplier() const {