mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb+LibGfx: Paint miter_limit for SVG and Canvas
This commit is contained in:
parent
87ec5b32b0
commit
a64902ba25
Notes:
github-actions[bot]
2025-04-14 17:01:47 +00:00
Author: https://github.com/mehrankamal
Commit: a64902ba25
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4349
Reviewed-by: https://github.com/AtkinsSJ ✅
7 changed files with 10 additions and 7 deletions
|
@ -329,10 +329,10 @@ void CanvasRenderingContext2D::stroke_internal(Gfx::Path const& path)
|
|||
|
||||
auto& state = drawing_state();
|
||||
|
||||
// FIXME: Honor state's miter_limit, dash_list, and line_dash_offset.
|
||||
// FIXME: Honor state's dash_list, and line_dash_offset.
|
||||
auto line_cap = to_gfx_cap(state.line_cap);
|
||||
auto line_join = to_gfx_join(state.line_join);
|
||||
painter->stroke_path(path, state.stroke_style.to_gfx_paint_style(), state.filters, state.line_width, state.global_alpha, state.current_compositing_and_blending_operator, line_cap, line_join);
|
||||
painter->stroke_path(path, state.stroke_style.to_gfx_paint_style(), state.filters, state.line_width, state.global_alpha, state.current_compositing_and_blending_operator, line_cap, line_join, state.miter_limit);
|
||||
|
||||
did_draw(path.bounding_box());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue