mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb: Add {,de}serialization steps for DOMQuad
This commit is contained in:
parent
d086d0cd92
commit
5397340724
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/kennethmyhra
Commit: 5397340724
Pull-request: https://github.com/SerenityOS/serenity/pull/23636
5 changed files with 79 additions and 1 deletions
|
@ -43,6 +43,10 @@
|
|||
println(`instanceOf DOMRect: ${domRect instanceof DOMRect}`);
|
||||
println(`DOMRect: ${JSON.stringify(domRect)}`);
|
||||
|
||||
let domQuad = structuredClone(new DOMQuad(new DOMPoint(10, 20, 30, 40), new DOMPoint(50, 60, 70, 80), new DOMPoint(90, 100, 110, 120), new DOMPoint(130, 140, 150, 160)));
|
||||
println(`instanceOf DOMQuad: ${domQuad instanceof DOMQuad}`);
|
||||
println(`DOMQuad: ${JSON.stringify(domQuad)}`);
|
||||
|
||||
let cryptoKey = await window.crypto.subtle.importKey(
|
||||
"raw",
|
||||
new TextEncoder().encode("password"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue