mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb: Ensure segments are copied only once in set_line_dash
This commit is contained in:
parent
be979a1e65
commit
134dc57458
Notes:
github-actions[bot]
2024-12-04 16:34:51 +00:00
Author: https://github.com/shlyakpavel
Commit: 134dc57458
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2678
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ public:
|
|||
segments.extend(segments);
|
||||
|
||||
// 3. Let the object's dash list be segments.
|
||||
my_drawing_state().dash_list = segments;
|
||||
my_drawing_state().dash_list = move(segments);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-getlinedash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue