Skip to content

Commit

Permalink
Cherry-pick 262434@main (93920b5). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=254821

    Fix build of SourceBrush.cpp
    https://bugs.webkit.org/show_bug.cgi?id=254821

    Unreviewed build fix.

    * Source/WebCore/platform/graphics/SourceBrush.cpp:
    (WebCore::SourceBrush::setGradient):
    (WebCore::SourceBrush::setPattern):

    Canonical link: https://commits.webkit.org/262434@main
  • Loading branch information
mcatanzaro committed Apr 20, 2023
1 parent 5dcc939 commit 96b2c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebCore/platform/graphics/SourceBrush.cpp
Expand Up @@ -65,12 +65,12 @@ Pattern* SourceBrush::pattern() const

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)
Expand Down

0 comments on commit 96b2c10

Please sign in to comment.