Bastiaan van der Plaat
7e9ea964a8
LibWeb: Use TRY in DOMMatrix and DOMPointReadOnly
2023-09-17 16:48:54 -06:00
Bastiaan van der Plaat
494a8cb816
AK: Add to_radians and to_degrees math functions
2023-09-10 08:38:29 +01:00
Bastiaan van der Plaat
fc380bf516
LibWeb: Add DOMMatrix skewX and skewY
2023-09-05 20:30:36 +02:00
Bastiaan van der Plaat
5cd35b633a
LibWeb: Add DOMMatrix translate
2023-09-03 15:05:41 +02:00
Bastiaan van der Plaat
61c063f7b3
LibWeb: Add DOMMatrix multiply
2023-09-03 15:05:41 +02:00
Bastiaan van der Plaat
ff1bcc694d
LibWeb: Add DOMMatrix and DOMMatrixReadOnly fromMatrix
2023-09-03 15:05:41 +02:00
Bastiaan van der Plaat
57a1d99cf4
LibWeb: Fix DOMMatrix Gfx::Matrix row/column ordering
...
The matrix used in the spec is column-major but Gfx::Matrix4x4 is
row-major so we need to transpose the values. This will fix internal
operations on that matrix. Because we also transposed the readonly
matrix property getters the matrix is again transposed when reading
so the JavaScript world only sees a column-major matrix.
2023-09-01 20:58:13 +02:00
Andreas Kling
72c9f56c66
LibJS: Make Heap::allocate<T>() infallible
...
Stop worrying about tiny OOMs. Work towards #20449 .
While going through these, I also changed the function signature in many
places where returning ThrowCompletionOr<T> is no longer necessary.
2023-08-13 15:38:42 +02:00
Andreas Kling
18c54d8d40
LibJS: Make Cell::initialize() return void
...
Stop worrying about tiny OOMs.
Work towards #20405
2023-08-08 07:39:11 +02:00
Nico Weber
2abe62adfa
LibWeb: Don't divide by 0 in DOMMatrix::invert_self()
...
We'd only check is_invertible() after calling inverse(), which would
do a divide-by-0 for non-invertible matrices.
Less ambitious version of #18593 .
2023-05-04 15:39:34 +02:00
Linus Groh
11b40dbcf5
LibWeb/WebIDL: Store SimpleException message as a String{,View} variant
2023-03-03 19:50:36 +00:00
Luke Wilde
a90667e79c
LibWeb: Add initial implementation of DOMMatrix(ReadOnly)
...
This is currently missing a lot of functions and initialisation from a
<transform-list> string, but is enough for Ruffle.
2023-02-27 20:55:09 +01:00