diff options
author | Josh Matthews <josh@joshmatthews.net> | 2025-04-21 22:02:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 02:02:02 +0000 |
commit | 7b16ae26b4d6a9b233cc1eac5920215f68812514 (patch) | |
tree | 7324403fdd8fdcbf340fb44f657a82129e6df843 /components/layout_2020/flow/inline/construct.rs | |
parent | 0b8645d422371c2184b76e4de2980c41ece876f4 (diff) | |
download | servo-main.tar.gz servo-main.zip |
Rather than creating unique types for each pipeline-namespaced index
type (eg. MessagePortId, DomExceptionId, etc.), we can create a generic
common type that uses a marker to prevent type confusion. This change
allows us to reduce the boilerplate code required when implementing
serializable/transferable interfaces, since the structured clone
implementation can rely on the common type.
Testing: Existing WPT tests for serialization and transferring provide
coverage.
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/layout_2020/flow/inline/construct.rs')
0 files changed, 0 insertions, 0 deletions