LibWeb: Use proper length values for CanvasRenderingContext2D functions

This commit is contained in:
Emanuele Torre 2020-04-22 18:25:41 +02:00 committed by Andreas Kling
parent a804615b9b
commit d5d3e0b4ed
Notes: sideshowbarker 2024-07-19 07:23:34 +09:00

View File

@ -61,10 +61,10 @@ CanvasRenderingContext2DWrapper::CanvasRenderingContext2DWrapper(CanvasRendering
put_native_function("beginPath", begin_path, 0);
put_native_function("closePath", close_path, 0);
put_native_function("stroke", stroke, 0);
put_native_function("moveTo", move_to, 0);
put_native_function("lineTo", line_to, 0);
put_native_function("moveTo", move_to, 2);
put_native_function("lineTo", line_to, 2);
put_native_function("createImageData", create_image_data, 2);
put_native_function("createImageData", create_image_data, 1);
put_native_function("putImageData", put_image_data, 3);
put_native_property("lineWidth", line_width_getter, line_width_setter);