[cef][wam] Make the recipe work with official chromium release tarballs
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / chromium / 0027-M118-fix-Initialize-percentages-member-on-blink-Font.patch
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
5  blink::FontPalette
6
7 Fixes the build issue:
8
9 error: constructor for 'blink::FontPalette' must explicitly
10 initialize the member 'percentages_'
11
12 Upstream-Status: Inappropriate
13 Signed-off-by: Roger Zanoni <rzanoni@igalia.com>
14 ---
15  .../blink/renderer/platform/fonts/font_palette.h      | 11 ++++++++---
16  1 file changed, 8 insertions(+), 3 deletions(-)
17
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> {
23  
24   private:
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} {}
36    FontPalette(
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) {}
42    FontPalette()
43 -      : palette_keyword_(kNormalPalette), base_palette_({kNoBasePalette, 0}) {}
44 +      : palette_keyword_(kNormalPalette),
45 +        base_palette_({kNoBasePalette, 0}),
46 +        percentages_{0.0, 0.0} {}
47  
48    KeywordPaletteName palette_keyword_;
49    AtomicString palette_values_name_;
50 -- 
51 2.42.1
52