canvas2d: Implement .reset() (#31258)

* Implement Canvas2D reset

* Update WPT tests

* Apply suggestions from code review

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Smitty 2024-02-05 03:53:00 -05:00 committed by GitHub
parent 29c206a702
commit b2ae3928ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
106 changed files with 28 additions and 289 deletions

View file

@ -1241,9 +1241,6 @@
[Worklet interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[CanvasRenderingContext2D interface: operation reset()]
expected: FAIL
[CanvasRenderingContext2D interface: operation createConicGradient(double, double, double)]
expected: FAIL
@ -1265,9 +1262,6 @@
[CanvasRenderingContext2D interface: attribute textRendering]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "reset()" with the proper type]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "createConicGradient(double, double, double)" with the proper type]
expected: FAIL