mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Auto merge of #20405 - christianpoveda:issue_20349, r=jdm
Add constructors for typed arrays in DOMMatrix and DOMMatrixReadOnly <!-- Please describe your changes on the following line: --> - DOMMatrix now have the functions: FromFloat32Array, FromFloat64Array. - DOMMatrixReadOnly now have the functions: FromFloat32Array, FromFloat64Array, ToFloat32Array, ToFloat64Array. r? @jdm --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20349 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20405) <!-- Reviewable:end -->
This commit is contained in:
commit
2d78964634
7 changed files with 328 additions and 431 deletions
|
@ -17,8 +17,8 @@
|
|||
interface DOMMatrix : DOMMatrixReadOnly {
|
||||
|
||||
[NewObject, Throws] static DOMMatrix fromMatrix(optional DOMMatrixInit other);
|
||||
// [NewObject] static DOMMatrix fromFloat32Array(Float32Array array32);
|
||||
// [NewObject] static DOMMatrix fromFloat64Array(Float64Array array64);
|
||||
[NewObject, Throws] static DOMMatrix fromFloat32Array(Float32Array array32);
|
||||
[NewObject, Throws] static DOMMatrix fromFloat64Array(Float64Array array64);
|
||||
|
||||
// These attributes are simple aliases for certain elements of the 4x4 matrix
|
||||
inherit attribute unrestricted double a;
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
interface DOMMatrixReadOnly {
|
||||
|
||||
[NewObject, Throws] static DOMMatrixReadOnly fromMatrix(optional DOMMatrixInit other);
|
||||
// [NewObject] static DOMMatrixReadOnly fromFloat32Array(Float32Array array32);
|
||||
// [NewObject] static DOMMatrixReadOnly fromFloat64Array(Float64Array array64);
|
||||
[NewObject, Throws] static DOMMatrixReadOnly fromFloat32Array(Float32Array array32);
|
||||
[NewObject, Throws] static DOMMatrixReadOnly fromFloat64Array(Float64Array array64);
|
||||
|
||||
// These attributes are simple aliases for certain elements of the 4x4 matrix
|
||||
readonly attribute unrestricted double a;
|
||||
|
@ -79,8 +79,8 @@ interface DOMMatrixReadOnly {
|
|||
DOMMatrix inverse();
|
||||
|
||||
DOMPoint transformPoint(optional DOMPointInit point);
|
||||
// Float32Array toFloat32Array();
|
||||
// Float64Array toFloat64Array();
|
||||
Float32Array toFloat32Array();
|
||||
Float64Array toFloat64Array();
|
||||
// stringifier;
|
||||
// serializer = { attribute };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue