mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 10:47:44 +00:00
LibWeb: Check radius sign in CanvasRenderingContext2D::{arc, ellipse}
As required by the specification: 'If either radiusX or radiusY are negative, then throw an "IndexSizeError" DOMException.'
This commit is contained in:
parent
00114ab01d
commit
c5769a7033
2 changed files with 14 additions and 5 deletions
|
@ -75,8 +75,8 @@ public:
|
|||
void line_to(float x, float y);
|
||||
void quadratic_curve_to(float cx, float cy, float x, float y);
|
||||
|
||||
void arc(float x, float y, float radius, float start_angle, float end_angle, bool counter_clockwise);
|
||||
void ellipse(float x, float y, float radius_x, float radius_y, float rotation, float start_angle, float end_angle, bool counter_clockwise);
|
||||
DOM::ExceptionOr<void> arc(float x, float y, float radius, float start_angle, float end_angle, bool counter_clockwise);
|
||||
DOM::ExceptionOr<void> ellipse(float x, float y, float radius_x, float radius_y, float rotation, float start_angle, float end_angle, bool counter_clockwise);
|
||||
void rect(float x, float y, float width, float height);
|
||||
void stroke();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue