LibGfx: Move Gfx::Painter::WindingRule => Gfx::WindingRule

This commit is contained in:
Andreas Kling 2024-06-05 10:21:28 +02:00 committed by Andreas Kling
commit 57906a4e1b
Notes: sideshowbarker 2024-07-17 01:53:23 +09:00
16 changed files with 68 additions and 55 deletions

View file

@ -38,13 +38,13 @@ TraversalDecision SVGPathPaintable::hit_test(CSSPixelPoint position, HitTestType
return SVGGraphicsPaintable::hit_test(position, type, callback);
}
static Gfx::Painter::WindingRule to_gfx_winding_rule(SVG::FillRule fill_rule)
static Gfx::WindingRule to_gfx_winding_rule(SVG::FillRule fill_rule)
{
switch (fill_rule) {
case SVG::FillRule::Nonzero:
return Gfx::Painter::WindingRule::Nonzero;
return Gfx::WindingRule::Nonzero;
case SVG::FillRule::Evenodd:
return Gfx::Painter::WindingRule::EvenOdd;
return Gfx::WindingRule::EvenOdd;
default:
VERIFY_NOT_REACHED();
}