mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Add {,de}serialization steps for DOMMatrix
This commit is contained in:
parent
181424377d
commit
8d2f7cfb58
Notes:
sideshowbarker
2024-07-17 05:00:08 +09:00
Author: https://github.com/kennethmyhra
Commit: 8d2f7cfb58
Pull-request: https://github.com/SerenityOS/serenity/pull/23538
Reviewed-by: https://github.com/ADKaster
5 changed files with 27 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue