mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb: Implicitly close all subpaths when canvas.fill() is called
This commit is contained in:
parent
6f15f23a40
commit
ce36071447
Notes:
sideshowbarker
2024-07-19 06:48:14 +09:00
Author: https://github.com/alimpfard
Commit: ce36071447
Pull-request: https://github.com/SerenityOS/serenity/pull/2174
Issue: https://github.com/SerenityOS/serenity/issues/2172
1 changed files with 3 additions and 1 deletions
|
@ -185,7 +185,9 @@ void CanvasRenderingContext2D::fill(Gfx::Painter::WindingRule winding)
|
|||
if (!painter)
|
||||
return;
|
||||
|
||||
painter->fill_path(m_path, m_fill_style, winding);
|
||||
auto path = m_path;
|
||||
path.close_all_subpaths();
|
||||
painter->fill_path(path, m_fill_style, winding);
|
||||
}
|
||||
|
||||
RefPtr<ImageData> CanvasRenderingContext2D::create_image_data(JS::GlobalObject& global_object, int width, int height) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue