mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Add DOMMatrix and DOMMatrixReadOnly fromMatrix
This commit is contained in:
parent
bbf66ea055
commit
ff1bcc694d
Notes:
sideshowbarker
2024-07-16 18:26:46 +09:00
Author: https://github.com/bplaat
Commit: ff1bcc694d
Pull-request: https://github.com/SerenityOS/serenity/pull/20930
8 changed files with 35 additions and 2 deletions
|
@ -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]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue