servo/components/script/dom/bindings
Josh Matthews d8fc1d8bb8
Refactor common boilerplate out of serialize/transfer implementations (#35831)
* script: Create infrastructure for reducing hand-written serializable/transferrable implementations.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Clone all serializable DOM interfaces.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Deserialize all serializable DOM interfaces.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Serialize all serializable DOM interfaces.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Transfer-receive all transferable DOM interfaces.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Transfer all transferable DOM interfaces.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Formatting.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Extract boilerplate from serialize/deserialize implementations.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Extract boilerplate from transfer-receive.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Extract boilerplate from transfer operation.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Tidy fixes.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Check transferability of all DOM interfaces.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Clippy fixes.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Clippy fixes.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Remove unnecessary duplicate crate.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Formatting.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-03-15 13:58:56 +00:00
..
buffer_source.rs script: refactor create_buffer_source_with_constructor (#35952) 2025-03-13 10:28:24 +00:00
callback.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
cell.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
constructor.rs Set is value when constructing custom elements with the new operator (#35930) 2025-03-12 17:53:27 +00:00
conversions.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
error.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
finalize.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
frozenarray.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
function.rs Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller (#34064) 2024-12-17 21:14:00 +00:00
guard.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
import.rs script: Mark callback methods with CanGc. (#35753) 2025-03-03 12:17:25 +00:00
inheritance.rs Move more foundational types to script_bindings (#35280) 2025-02-04 10:36:30 +00:00
interface.rs Add an about:memory page (#35728) 2025-03-07 05:25:08 +00:00
iterable.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
like.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
mod.rs Move more bindings code to script_bindings (#35578) 2025-02-22 04:46:56 +00:00
namespace.rs Move more bindings code to script_bindings (#35578) 2025-02-22 04:46:56 +00:00
num.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
principals.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
proxyhandler.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
record.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
refcounted.rs refactor: add CanGc as argument to Promise::reject_error (#35646) 2025-02-25 10:12:58 +00:00
reflector.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
root.rs Move more bindings code to script_bindings (#35578) 2025-02-22 04:46:56 +00:00
serializable.rs Refactor common boilerplate out of serialize/transfer implementations (#35831) 2025-03-15 13:58:56 +00:00
settings_stack.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
str.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
structuredclone.rs Refactor common boilerplate out of serialize/transfer implementations (#35831) 2025-03-15 13:58:56 +00:00
trace.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
transferable.rs Refactor common boilerplate out of serialize/transfer implementations (#35831) 2025-03-15 13:58:56 +00:00
utils.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
weakref.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
xmlname.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00