Skip to content

Commit

Permalink
REGRESSION(266544@main): Broke linux clang builds
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=259820

Unreviewed, fix the GraphicsDropShadow initialization, the struct has no explicit constructor
accepting 4 parameters.

* Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp:
(WebCore::GraphicsContextCairo::didUpdateState):

Canonical link: https://commits.webkit.org/266575@main
  • Loading branch information
philn committed Aug 4, 2023
1 parent ee7bef0 commit 1f2aba4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void GraphicsContextCairo::didUpdateState(GraphicsContextState& state)
if (dropShadow && state.shadowsIgnoreTransforms()) {
// Meaning that this graphics context is associated with a CanvasRenderingContext
// We flip the height since CG and HTML5 Canvas have opposite Y axis
m_state.m_style = GraphicsDropShadow({ dropShadow->offset.width(), -dropShadow->offset.height() }, dropShadow->radius, dropShadow->color, dropShadow->radiusMode);
m_state.m_style = GraphicsDropShadow { { dropShadow->offset.width(), -dropShadow->offset.height() }, dropShadow->radius, dropShadow->color, dropShadow->radiusMode };
}
}

Expand Down

0 comments on commit 1f2aba4

Please sign in to comment.