Skip to content

Commit

Permalink
[LBSE] Fix clip-rule in masks
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=265183

Reviewed by Nikolas Zimmermann.

I forgot to include the code change in r271053.

* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceSolidColor.cpp:
(WebCore::LegacyRenderSVGResourceSolidColor::applyResource):

Canonical link: https://commits.webkit.org/271058@main
  • Loading branch information
rwlbuis committed Nov 22, 2023
1 parent 29291e2 commit d4e8950
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ bool LegacyRenderSVGResourceSolidColor::applyResource(RenderElement& renderer, c
else
context->setAlpha(1);
context->setFillColor(style.colorByApplyingColorFilter(m_color));
if (!isRenderingMask)
if (isRenderingMask)
context->setFillRule(svgStyle.clipRule());
else
context->setFillRule(svgStyle.fillRule());

if (resourceMode.contains(RenderSVGResourceMode::ApplyToText))
Expand Down

0 comments on commit d4e8950

Please sign in to comment.