servo/components/script/dom/bindings
Martin Robinson e42b4b793d
script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843)
Expose two new helpers and start using them as much as possible.

- `NodeTraits::owner_global`: which gets the `GlobalScope` that currenty
 owns a `Node`. This may be different than `.global()` in the case that
 the `Node` was adopted by a different `Document`.
- `Window::as_global_scope`: A helper to avoid having to cast so much
  when treating a `Window` like a `GlobalScope`.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-01-07 09:56:02 +00:00
..
codegen Remove readable streams from webidl/codegen (#34835) 2025-01-04 12:40:38 +00:00
buffer_source.rs webgpu: Sync GPUBuffer (#33154) 2024-08-27 07:54:55 +00:00
callback.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +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 Fix invalid rooting for PropertyDescriptor (#34018) 2024-10-28 19:03:24 +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 CanGc fixes in errorevent.rs (#33960) 2024-10-22 10:08:55 +00:00
finalize.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
frozenarray.rs implement CachedFrozenArray (#34145) 2024-11-06 21:26:08 +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 bindings: Allow Guard to take multiple conditions, check for SecureContext in ConstructorEnabled (#33508) 2024-09-21 09:50:05 +00:00
import.rs Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller (#34064) 2024-12-17 21:14:00 +00:00
inheritance.rs Support associated types in must_root lint (#34163) 2024-11-06 18:48:57 +00:00
interface.rs Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller (#34064) 2024-12-17 21:14:00 +00:00
iterable.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
like.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
mod.rs Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller (#34064) 2024-12-17 21:14:00 +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: Handle null contexts better during JS runtime shutdown. (#34769) 2024-12-26 08:23:27 +00:00
proxyhandler.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +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 a variety of clippy warnings in fonts, layout_2020 and the DOM code (#33894) 2024-10-18 13:57:13 +00:00
reflector.rs script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843) 2025-01-07 09:56:02 +00:00
root.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
serializable.rs Split StructuredCloneHolder into Reader and Writer structs (#34792) 2024-12-30 02:20:52 +00:00
settings_stack.rs script: Handle null contexts better during JS runtime shutdown. (#34769) 2024-12-26 08:23:27 +00:00
str.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
structuredclone.rs Split StructuredCloneHolder into Reader and Writer structs (#34792) 2024-12-30 02:20:52 +00:00
trace.rs Replace unsafe uses of HandleValueArray. (#34588) 2024-12-13 23:21:55 +00:00
transferable.rs Split StructuredCloneHolder into Reader and Writer structs (#34792) 2024-12-30 02:20:52 +00:00
utils.rs Create two-phase initialization for generated JS engine bindings (#34366) 2024-12-06 07:34:24 +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