LibWeb: Add DOMMatrix and DOMMatrixReadOnly fromMatrix

This commit is contained in:
Bastiaan van der Plaat 2023-09-03 12:37:29 +02:00 committed by Andreas Kling
commit ff1bcc694d
Notes: sideshowbarker 2024-07-16 18:26:46 +09:00
8 changed files with 35 additions and 2 deletions

View file

@ -53,6 +53,8 @@ public:
virtual ~DOMMatrixReadOnly() override;
static WebIDL::ExceptionOr<JS::NonnullGCPtr<DOMMatrixReadOnly>> from_matrix(JS::VM&, DOMMatrixInit& other);
// https://drafts.fxtf.org/geometry/#dommatrix-attributes
double m11() const { return m_matrix.elements()[0][0]; }
double m12() const { return m_matrix.elements()[1][0]; }