mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
LibWeb: Add {,de}serialization steps for DOMRect
This commit is contained in:
parent
9f5fa4f4a0
commit
94c6389fc0
Notes:
sideshowbarker
2024-07-17 02:39:10 +09:00
Author: https://github.com/kennethmyhra
Commit: 94c6389fc0
Pull-request: https://github.com/SerenityOS/serenity/pull/23538
Reviewed-by: https://github.com/ADKaster
5 changed files with 23 additions and 0 deletions
|
@ -39,6 +39,10 @@
|
|||
println(`instanceOf DOMRectReadOnly: ${domRectReadOnly instanceof DOMRectReadOnly}`);
|
||||
println(`DOMRectReadOnly: ${JSON.stringify(domRectReadOnly)}`);
|
||||
|
||||
let domRect = structuredClone(new DOMRect(10, 20, 30, 40));
|
||||
println(`instanceOf DOMRect: ${domRect instanceof DOMRect}`);
|
||||
println(`DOMRect: ${JSON.stringify(domRect)}`);
|
||||
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue