File webkit2gtk3-default-value.patch of Package webkit2gtk3.30069

From caaf11e8a339070872c2a0f554828641b5d55b16 Mon Sep 17 00:00:00 2001
From: Diego Pino Garcia <dpino@igalia.com>
Date: Wed, 15 Mar 2023 18:58:28 -0700
Subject: [PATCH] [GCC] Unreviewed, build fix for Ubuntu 20.04 after
 261700@main https://bugs.webkit.org/show_bug.cgi?id=253655

Default comparisons by value (P1946R0) is only supported since GCC10.

* Source/WebCore/platform/graphics/DecodingOptions.h:
(WebCore::DecodingOptions::operator== const):
(WebCore::DecodingOptions::operator!= const):

Canonical link: https://commits.webkit.org/261725@main
---
 Source/WebCore/platform/graphics/DecodingOptions.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Source/WebCore/platform/graphics/DecodingOptions.h b/Source/WebCore/platform/graphics/DecodingOptions.h
index 36b105f9a186..f615c7af5df1 100644
--- a/Source/WebCore/platform/graphics/DecodingOptions.h
+++ b/Source/WebCore/platform/graphics/DecodingOptions.h
@@ -45,7 +45,14 @@ public:
     {
     }
 
-    bool operator==(const DecodingOptions&) const = default;
+    bool operator==(const DecodingOptions& other) const
+    {
+        return m_decodingMode == other.m_decodingMode && m_sizeForDrawing == other.m_sizeForDrawing;
+    }
+    bool operator!=(const DecodingOptions& other) const
+    {
+        return !(*this == other);
+    }
 
     DecodingMode decodingMode() const { return m_decodingMode; }
     bool isAuto() const { return m_decodingMode == DecodingMode::Auto; }
-- 
2.40.1

openSUSE Build Service is sponsored by