mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +00:00
LibGfx: Move Gfx::Painter::WindingRule => Gfx::WindingRule
This commit is contained in:
parent
254d040ff4
commit
57906a4e1b
Notes:
sideshowbarker
2024-07-17 01:53:23 +09:00
Author: https://github.com/awesomekling
Commit: 57906a4e1b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/50
16 changed files with 68 additions and 55 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue