Implement DOMRect::FromRect (#33798)

* Implement DOMRect::FromRect

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Silence crown errors

The rect type does not contain any gc'd members,
so not rooting it is perfectly fineSilence crown errors

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Add SVGRect to the list of exposed interface globals

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT manifest

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-10-11 17:35:59 +02:00 committed by GitHub
parent 8843a0e400
commit c5899e596d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 63 additions and 48 deletions

View file

@ -1,6 +0,0 @@
[DOMRect-002.html]
[DOMRect.fromRect]
expected: FAIL
[DOMRectReadOnly.fromRect]
expected: FAIL

View file

@ -1,28 +1,13 @@
[idlharness.any.worker.html]
[DOMRectReadOnly interface: operation fromRect(optional DOMRectInit)]
expected: FAIL
[DOMPointReadOnly interface: calling matrixTransform(optional DOMMatrixInit) on new DOMPoint() with too few arguments must throw TypeError]
expected: FAIL
[DOMPointReadOnly interface: operation matrixTransform(optional DOMMatrixInit)]
expected: FAIL
[DOMRect interface: operation fromRect(optional DOMRectInit)]
expected: FAIL
[DOMPointReadOnly interface: new DOMPoint() must inherit property "matrixTransform(optional DOMMatrixInit)" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: calling fromRect(optional DOMRectInit) on new DOMRect() with too few arguments must throw TypeError]
expected: FAIL
[DOMRect interface: calling fromRect(optional DOMRectInit) on new DOMRect() with too few arguments must throw TypeError]
expected: FAIL
[DOMRectReadOnly interface: calling fromRect(optional DOMRectInit) on new DOMRectReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "matrixTransform(optional DOMMatrixInit)" with the proper type]
expected: FAIL
@ -31,9 +16,6 @@
[idlharness.any.html]
[DOMRectReadOnly interface: operation fromRect(optional DOMRectInit)]
expected: FAIL
[DOMPointReadOnly interface: calling matrixTransform(optional DOMMatrixInit) on new DOMPoint() with too few arguments must throw TypeError]
expected: FAIL
@ -49,9 +31,6 @@
[DOMRectList interface: [object DOMRect\] must inherit property "length" with the proper type]
expected: FAIL
[DOMRect interface: operation fromRect(optional DOMRectInit)]
expected: FAIL
[DOMRectList interface: operation item(unsigned long)]
expected: FAIL
@ -70,18 +49,9 @@
[DOMMatrix interface: operation setMatrixValue(DOMString)]
expected: FAIL
[DOMRectReadOnly interface: calling fromRect(optional DOMRectInit) on new DOMRect() with too few arguments must throw TypeError]
expected: FAIL
[DOMRect interface: calling fromRect(optional DOMRectInit) on new DOMRect() with too few arguments must throw TypeError]
expected: FAIL
[DOMPoint interface: legacy window alias]
expected: FAIL
[DOMRectReadOnly interface: calling fromRect(optional DOMRectInit) on new DOMRectReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMRectList interface object length]
expected: FAIL
@ -91,9 +61,6 @@
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "matrixTransform(optional DOMMatrixInit)" with the proper type]
expected: FAIL
[DOMRect interface: legacy window alias]
expected: FAIL
[DOMRectList interface: calling item(unsigned long) on [object DOMRect\] with too few arguments must throw TypeError]
expected: FAIL

View file

@ -13495,7 +13495,7 @@
]
],
"interfaces.https.html": [
"94f1102da478919d2948ebb96f81450f5d545635",
"bfe16e7de02b6c95f3aaf274510633f029ad682a",
[
null,
{}

View file

@ -240,6 +240,7 @@ test_interfaces([
"StyleSheet",
"StyleSheetList",
"SubmitEvent",
"SVGRect",
"Text",
"TextTrack",
"TextTrackCue",