1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 19:35:06 +00:00

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
parent ca093f442c
commit 6faaee2bc8

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)