servo/components/script/dom/bindings
Martin Robinson 30abb99287
clippy: Add safety documentation and clean up unsafe methods (#33748)
This change:

1. Adds safety documentation where it was missing.
2. Limits the scope of unsafe code in some cases to where it is actually
   unsafe.
3. Converts some free functions to associated functions and methods,
   thereby making them more likely to be called safely.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-10-16 08:11:31 +00:00
..
codegen CanGc fixes (#33852) 2024-10-16 02:50:28 +00:00
buffer_source.rs webgpu: Sync GPUBuffer (#33154) 2024-08-27 07:54:55 +00:00
callback.rs clippy: Fix a bunch of warnings in script (#32680) 2024-07-04 11:40:23 +00:00
cell.rs Fix incorrect documentation and add track_caller to DomRefCell methods (#33111) 2024-08-19 07:24:38 +00:00
constant.rs script: Use the new C string literal in the DOM bindings (#32741) 2024-07-11 04:18:54 +00:00
constructor.rs refactor CGClassConstructHook to use handwritten constructors (#33614) 2024-10-09 12:33:44 +00:00
conversions.rs jsstring_to_str should accept a NonNull argument for the JS string (#33306) 2024-09-05 03:25:49 +00:00
error.rs Update mozjs (SpiderMonkey) to 128.0 (#32769) 2024-07-29 07:20:15 +00:00
finalize.rs Extract generated finalizers into generic helper functions. (#31569) 2024-03-08 14:15:26 +00:00
guard.rs bindings: Allow Guard to take multiple conditions, check for SecureContext in ConstructorEnabled (#33508) 2024-09-21 09:50:05 +00:00
import.rs refactor CGClassConstructHook to use handwritten constructors (#33614) 2024-10-09 12:33:44 +00:00
inheritance.rs Fix: Add missing transmute annotations in Castable trait (#33729) 2024-10-08 16:37:05 +00:00
interface.rs fix: Replace callargs_is_constructing with is_constructing method (#33101) 2024-08-18 01:48:39 +00:00
iterable.rs Start marking functions that can transitively trigger a GC (#33144) 2024-08-22 11:42:36 +00:00
like.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
mod.rs refactor CGClassConstructHook to use handwritten constructors (#33614) 2024-10-09 12:33:44 +00:00
namespace.rs script: Use the new C string literal in the DOM bindings (#32741) 2024-07-11 04:18:54 +00:00
num.rs clippy: Fix dereferencing a tuple pattern warnings (#31811) 2024-03-21 17:04:18 +00:00
principals.rs script: Impl cloning of JSPrincipals (#32706) 2024-07-06 10:25:38 +00:00
proxyhandler.rs Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
record.rs Fix some clippy warnings in components/gfx and components/script (#32215) 2024-05-02 20:02:21 +00:00
refcounted.rs clippy: Fix clippy problems in components/script/dom (#31891) 2024-03-27 18:36:16 +00:00
reflector.rs clippy: Add safety documentation and clean up unsafe methods (#33748) 2024-10-16 08:11:31 +00:00
root.rs fix(clippy): add missing annotations for transmute usage in root.rs (#33728) 2024-10-08 16:02:19 +00:00
serializable.rs rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
settings_stack.rs Propagate CanGc from Document::new() (#33386) 2024-09-09 22:38:01 +00:00
str.rs Fix rustdoc problems (#33458) 2024-09-14 18:32:41 +00:00
structuredclone.rs Update mozjs (SpiderMonkey) to 128.0 (#32769) 2024-07-29 07:20:15 +00:00
trace.rs clippy: Add safety documentation and clean up unsafe methods (#33748) 2024-10-16 08:11:31 +00:00
transferable.rs rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
utils.rs tidy: Fix rustdoc warnings and add a tidy check for a common URL issue (#33366) 2024-09-08 15:04:19 +00:00
weakref.rs Replace script_plugins with a clippy like rustc driver (named crown) (#30508) 2023-12-01 15:50:52 +00:00
xmlname.rs clippy: Fix a bunch of warnings in script (#32680) 2024-07-04 11:40:23 +00:00