servo/components/script_bindings
Jo Steven Novaryo 3ce95b2ba5
script: Impl safe from_jsval wrapper (#38149)
Implement `SafeFromJSValConvertible`, a safe wrapper for
`ToJSValConvertible`. And, replace unsafe `ToJSValConvertible` with
`SafeFromJSValConvertible` in `script/dom` to reduce the amount of
unsafe code in `script`.

This would support the implementation of `AdoptedStylesheet` where we
will need to have a setter/getter of sequence, that was implemented by
`any` types.

Part of https://github.com/servo/servo/issues/37951

Signed-off-by: Jo Steven Novaryo <jo.steven.novaryo@huawei.com>
2025-07-17 19:32:36 +00:00
..
codegen script: Use Pythonic file names for code generation and use functools.cache (#38047) 2025-07-14 19:38:55 +00:00
webidls canvas: Add initial support of ImageBitmapRenderingContext (#37998) 2025-07-15 08:03:49 +00:00
build.rs Mergeruff.toml into pyproject.toml (#37741) 2025-07-04 12:21:48 +00:00
callback.rs
Cargo.toml script: Pass more information to the MouseEvent constructor (#37672) 2025-06-25 12:29:27 +00:00
constant.rs
constructor.rs
conversions.rs script: Impl safe from_jsval wrapper (#38149) 2025-07-17 19:32:36 +00:00
error.rs script: Add a Constraint DOMException for IndexedDB (#37605) 2025-07-12 10:08:40 +00:00
finalize.rs
guard.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
import.rs Make ImageData more spec compliant (#37620) 2025-06-25 16:48:58 +00:00
inheritance.rs
interface.rs Don't set a prototype for unscopable objects (#37122) 2025-05-25 00:16:31 +00:00
interfaces.rs codegen: use FromJSValConvertible trait for Promise (#36966) 2025-05-12 11:05:46 +00:00
iterable.rs
lib.rs Make the crown disabled warning clearer and less scary (#37535) 2025-06-19 12:44:26 +00:00
like.rs
lock.rs
mem.rs
namespace.rs
num.rs
principals.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
proxyhandler.rs
realms.rs
record.rs Implement URLPattern::{text, exec} (#37044) 2025-05-24 11:12:11 +00:00
reflector.rs script: Return global objects for DOM objects in the relevant realm (#37120) 2025-05-25 03:21:05 +00:00
root.rs Don't allocate in Dom::trace even when debug assertions are enabled (#37487) 2025-06-16 17:32:33 +00:00
script_runtime.rs
settings_stack.rs
str.rs
trace.rs
utils.rs
weakref.rs