mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Add DOMMatrix and DOMMatrixReadOnly fromMatrix
This commit is contained in:
committed by
Andreas Kling
parent
bbf66ea055
commit
ff1bcc694d
@@ -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]; }
|
||||
|
||||
Reference in New Issue
Block a user