aboutsummaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/patches/fix-sourcebrush.patch
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2023-06-02 20:08:34 +0200
committerCem Keylan <cem@ckyln.com>2023-06-02 20:08:34 +0200
commitc04967ce5b2f13fc1dbc67ac9e6a3a15103d8930 (patch)
treeb45e4a2251c37c85a9c1a8a24b067788a7d1f9cb /extra/webkit2gtk/patches/fix-sourcebrush.patch
parent1f1ba00b91708dabdcd3c54fe44581fc99d77e58 (diff)
downloadrepository-c04967ce5b2f13fc1dbc67ac9e6a3a15103d8930.tar.gz
webkit2gtk: bump to 2.40.1
Diffstat (limited to 'extra/webkit2gtk/patches/fix-sourcebrush.patch')
-rw-r--r--extra/webkit2gtk/patches/fix-sourcebrush.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/webkit2gtk/patches/fix-sourcebrush.patch b/extra/webkit2gtk/patches/fix-sourcebrush.patch
new file mode 100644
index 00000000..c553d66e
--- /dev/null
+++ b/extra/webkit2gtk/patches/fix-sourcebrush.patch
@@ -0,0 +1,18 @@
+diff -ur a/Source/WebCore/platform/graphics/SourceBrush.cpp b/Source/WebCore/platform/graphics/SourceBrush.cpp
+--- a/Source/WebCore/platform/graphics/SourceBrush.cpp Wed May 24 13:31:50 2023
++++ b/Source/WebCore/platform/graphics/SourceBrush.cpp Wed May 24 13:31:24 2023
+@@ -65,12 +65,12 @@
+
+ void SourceBrush::setGradient(Ref<Gradient>&& gradient, const AffineTransform& spaceTransform)
+ {
+- m_brush = { Brush::LogicalGradient { WTFMove(gradient), spaceTransform } };
++ m_brush = Brush { Brush::LogicalGradient { WTFMove(gradient), spaceTransform } };
+ }
+
+ void SourceBrush::setPattern(Ref<Pattern>&& pattern)
+ {
+- m_brush = { Brush::Variant { std::in_place_type<Ref<Pattern>>, WTFMove(pattern) } };
++ m_brush = Brush { Brush::Variant { std::in_place_type<Ref<Pattern>>, WTFMove(pattern) } };
+ }
+
+ WTF::TextStream& operator<<(TextStream& ts, const SourceBrush& brush)