archrelease: copy trunk to extra-x86_64
[arch-packages.git] / webkit2gtk / trunk / 0001-Fix-build-of-SourceBrush.cpp.patch
blob8229837ddae78de8ac320617a1773d9d1129c32b
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Michael Catanzaro <mcatanzaro@redhat.com>
3 Date: Fri, 31 Mar 2023 12:24:09 -0700
4 Subject: [PATCH] Fix build of SourceBrush.cpp
5 https://bugs.webkit.org/show_bug.cgi?id=254821
7 Unreviewed build fix.
9 * Source/WebCore/platform/graphics/SourceBrush.cpp:
10 (WebCore::SourceBrush::setGradient):
11 (WebCore::SourceBrush::setPattern):
13 Canonical link: https://commits.webkit.org/262434@main
14 ---
15 Source/WebCore/platform/graphics/SourceBrush.cpp | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
18 diff --git a/Source/WebCore/platform/graphics/SourceBrush.cpp b/Source/WebCore/platform/graphics/SourceBrush.cpp
19 index f4d299be82f1..4bf4d6842aea 100644
20 --- a/Source/WebCore/platform/graphics/SourceBrush.cpp
21 +++ b/Source/WebCore/platform/graphics/SourceBrush.cpp
22 @@ -65,12 +65,12 @@ Pattern* SourceBrush::pattern() const
24 void SourceBrush::setGradient(Ref<Gradient>&& gradient, const AffineTransform& spaceTransform)
26 - m_brush = { Brush::LogicalGradient { WTFMove(gradient), spaceTransform } };
27 + m_brush = Brush { Brush::LogicalGradient { WTFMove(gradient), spaceTransform } };
30 void SourceBrush::setPattern(Ref<Pattern>&& pattern)
32 - m_brush = { Brush::Variant { std::in_place_type<Ref<Pattern>>, WTFMove(pattern) } };
33 + m_brush = Brush { Brush::Variant { std::in_place_type<Ref<Pattern>>, WTFMove(pattern) } };
36 WTF::TextStream& operator<<(TextStream& ts, const SourceBrush& brush)