LibWeb: Add {,de}serialization steps for DOMMatrix

This commit is contained in:
Kenneth Myhra 2024-03-09 22:41:26 +01:00 committed by Andreas Kling
commit 8d2f7cfb58
Notes: sideshowbarker 2024-07-17 05:00:08 +09:00
5 changed files with 27 additions and 0 deletions

View file

@ -118,6 +118,11 @@ JS::NonnullGCPtr<DOMMatrix> DOMMatrix::create_from_dom_matrix_read_only(JS::Real
return realm.heap().allocate<DOMMatrix>(realm, realm, read_only_matrix);
}
JS::NonnullGCPtr<DOMMatrix> DOMMatrix::create(JS::Realm& realm)
{
return realm.heap().allocate<DOMMatrix>(realm, realm);
}
DOMMatrix::DOMMatrix(JS::Realm& realm, double m11, double m12, double m21, double m22, double m41, double m42)
: DOMMatrixReadOnly(realm, m11, m12, m21, m22, m41, m42)
{
@ -133,6 +138,11 @@ DOMMatrix::DOMMatrix(JS::Realm& realm, DOMMatrixReadOnly const& read_only_matrix
{
}
DOMMatrix::DOMMatrix(JS::Realm& realm)
: DOMMatrixReadOnly(realm)
{
}
DOMMatrix::~DOMMatrix() = default;
void DOMMatrix::initialize(JS::Realm& realm)