LibWeb: Fix copy/paste typo in CanvasRenderingContext2D::stroke_style()

This returned the fill style, not the stroke style!
This commit is contained in:
Linus Groh 2021-12-27 14:14:52 +01:00 committed by Andreas Kling
commit 6faaee2bc8
Notes: sideshowbarker 2024-07-17 22:07:44 +09:00

View file

@ -63,7 +63,7 @@ void CanvasRenderingContext2D::set_stroke_style(String style)
String CanvasRenderingContext2D::stroke_style() const
{
return m_fill_style.to_string();
return m_stroke_style.to_string();
}
void CanvasRenderingContext2D::stroke_rect(float x, float y, float width, float height)