1 From c206c886eabc8f03289802276f826baedf0e4e54 Mon Sep 17 00:00:00 2001
2 From: Roger Zanoni <rzanoni@igalia.com>
3 Date: Mon, 30 Oct 2023 21:20:48 -0300
4 Subject: [PATCH 27/33] [M118-fix] Initialize percentages member on
9 error: constructor for 'blink::FontPalette' must explicitly
10 initialize the member 'percentages_'
12 Upstream-Status: Inappropriate
13 Signed-off-by: Roger Zanoni <rzanoni@igalia.com>
15 .../blink/renderer/platform/fonts/font_palette.h | 11 ++++++++---
16 1 file changed, 8 insertions(+), 3 deletions(-)
18 diff --git a/third_party/blink/renderer/platform/fonts/font_palette.h b/third_party/blink/renderer/platform/fonts/font_palette.h
19 index 9a1a167acf213..8c9a9c02439b5 100644
20 --- a/third_party/blink/renderer/platform/fonts/font_palette.h
21 +++ b/third_party/blink/renderer/platform/fonts/font_palette.h
22 @@ -202,11 +202,14 @@ class PLATFORM_EXPORT FontPalette : public RefCounted<FontPalette> {
25 explicit FontPalette(KeywordPaletteName palette_name)
26 - : palette_keyword_(palette_name), base_palette_({kNoBasePalette, 0}) {}
27 + : palette_keyword_(palette_name),
28 + base_palette_({kNoBasePalette, 0}),
29 + percentages_{0.0, 0.0} {}
30 explicit FontPalette(AtomicString palette_values_name)
31 : palette_keyword_(kCustomPalette),
32 palette_values_name_(palette_values_name),
33 - base_palette_({kNoBasePalette, 0}) {}
34 + base_palette_({kNoBasePalette, 0}),
35 + percentages_{0.0, 0.0} {}
37 scoped_refptr<FontPalette> start,
38 scoped_refptr<FontPalette> end,
39 @@ -224,7 +227,9 @@ class PLATFORM_EXPORT FontPalette : public RefCounted<FontPalette> {
40 color_interpolation_space_(color_interpoaltion_space),
41 hue_interpolation_method_(hue_interpolation_method) {}
43 - : palette_keyword_(kNormalPalette), base_palette_({kNoBasePalette, 0}) {}
44 + : palette_keyword_(kNormalPalette),
45 + base_palette_({kNoBasePalette, 0}),
46 + percentages_{0.0, 0.0} {}
48 KeywordPaletteName palette_keyword_;
49 AtomicString palette_values_name_;