mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 06:32:26 +02:00
LibWeb: Add DOMMatrix and DOMMatrixReadOnly fromMatrix
This commit is contained in:
committed by
Andreas Kling
parent
bbf66ea055
commit
ff1bcc694d
@@ -73,6 +73,12 @@ void DOMMatrix::initialize(JS::Realm& realm)
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::DOMMatrixPrototype>(realm, "DOMMatrix"));
|
||||
}
|
||||
|
||||
// https://drafts.fxtf.org/geometry/#dom-dommatrix-frommatrix
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<DOMMatrix>> DOMMatrix::from_matrix(JS::VM& vm, DOMMatrixInit other)
|
||||
{
|
||||
return create_from_dom_matrix_2d_init(*vm.current_realm(), other);
|
||||
}
|
||||
|
||||
// https://drafts.fxtf.org/geometry/#dom-dommatrixreadonly-m11
|
||||
void DOMMatrix::set_m11(double value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user