aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/generated_content.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2025-04-23 09:05:41 -0400
committerGitHub <noreply@github.com>2025-04-23 13:05:41 +0000
commit5d3cbc67eed3f5ded27ad4d113ec70d8631eb152 (patch)
tree12160129505935e9a35629b864ad96f24b218a0e /components/layout/generated_content.rs
parent7c1e5918a8a5eb1f0bad88b42fdc5265ce1b2d2e (diff)
downloadservo-main.tar.gz
servo-main.zip
script: Add generic root storage to StructuredCloneReader. (#36640)HEADmain
This reduces the boilerplate necessary for adding new serializable/transferable interfaces to the structured cloning code. We always need to root the deserialized objects when performing a read operation, but we don't actually need the concrete object types in the majority of cases. By storing a list of rooted JS object values, we can push generic reflector objects into it, and extract the types we need (MessagePort) at the very end. Testing: Existing WPT structured cloning tests will provide coverage. Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/layout/generated_content.rs')
0 files changed, 0 insertions, 0 deletions