mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 14:37:43 +00:00
LibWeb: Request repaint on canvas path finalizaiton via fill/stroke
Since these were not requesting a repaint the drawn path was not being rendered until a repaint was forced in some other way (window resize).
This commit is contained in:
parent
b7c3f046f7
commit
0a580ef891
1 changed files with 2 additions and 0 deletions
|
@ -195,6 +195,7 @@ void CanvasRenderingContext2D::stroke()
|
||||||
return;
|
return;
|
||||||
|
|
||||||
painter->stroke_path(m_path, m_stroke_style, m_line_width);
|
painter->stroke_path(m_path, m_stroke_style, m_line_width);
|
||||||
|
did_draw(m_path.bounding_box());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CanvasRenderingContext2D::fill(Gfx::Painter::WindingRule winding)
|
void CanvasRenderingContext2D::fill(Gfx::Painter::WindingRule winding)
|
||||||
|
@ -206,6 +207,7 @@ void CanvasRenderingContext2D::fill(Gfx::Painter::WindingRule winding)
|
||||||
auto path = m_path;
|
auto path = m_path;
|
||||||
path.close_all_subpaths();
|
path.close_all_subpaths();
|
||||||
painter->fill_path(path, m_fill_style, winding);
|
painter->fill_path(path, m_fill_style, winding);
|
||||||
|
did_draw(m_path.bounding_box());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CanvasRenderingContext2D::fill(const String& fill_rule)
|
void CanvasRenderingContext2D::fill(const String& fill_rule)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue