servo/components/script
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
..
docs
dom script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843) 2025-01-07 09:56:02 +00:00
layout_dom Add shadow tree flags to Bind/UnbindContext (#34863) 2025-01-07 00:00:43 +00:00
xpath Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
animation_timeline.rs
animations.rs script: Expose node helpers as NodeTraits and give more descriptive names (#34832) 2025-01-03 18:55:01 +00:00
body.rs script: Unsilence all main thread TaskQueue errors (#34849) 2025-01-07 03:36:39 +00:00
build.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
canvas_state.rs script: Expose node helpers as NodeTraits and give more descriptive names (#34832) 2025-01-03 18:55:01 +00:00
Cargo.toml script: Make timers per-process (#34581) 2024-12-24 09:53:35 +00:00
clipboard_provider.rs
conversions.rs Correct a variety of documentation issues (#34786) 2024-12-29 10:37:57 +00:00
devtools.rs script: Expose node helpers as NodeTraits and give more descriptive names (#34832) 2025-01-03 18:55:01 +00:00
document_collection.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
document_loader.rs Fix GC borrow hazards triggered by LoadBlocker::terminate (#34122) 2024-11-04 22:27:41 +00:00
drag_data_store.rs Implement DataTransfer and related interfaces (#34205) 2024-11-25 10:49:04 +00:00
fetch.rs script: Unsilence all main thread TaskQueue errors (#34849) 2025-01-07 03:36:39 +00:00
iframe_collection.rs Correct a variety of documentation issues (#34786) 2024-12-29 10:37:57 +00:00
image_listener.rs script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843) 2025-01-07 09:56:02 +00:00
init.rs Create two-phase initialization for generated JS engine bindings (#34366) 2024-12-06 07:34:24 +00:00
layout_image.rs script: Expose node helpers as NodeTraits and give more descriptive names (#34832) 2025-01-03 18:55:01 +00:00
lib.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
links.rs script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843) 2025-01-07 09:56:02 +00:00
mem.rs
messaging.rs script: Eliminate code duplication in the task queue (#34798) 2025-01-01 13:50:52 +00:00
microtask.rs Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller (#34064) 2024-12-17 21:14:00 +00:00
network_listener.rs script: Unsilence all main thread TaskQueue errors (#34849) 2025-01-07 03:36:39 +00:00
realms.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
script_module.rs script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843) 2025-01-07 09:56:02 +00:00
script_runtime.rs script: Unsilence all main thread TaskQueue errors (#34849) 2025-01-07 03:36:39 +00:00
script_thread.rs script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843) 2025-01-07 09:56:02 +00:00
security_manager.rs Rewrite From/TryFrom conversions on generated types to avoid future orphan rule violations (#34554) 2024-12-11 05:52:48 +00:00
serviceworker_manager.rs Prevent moving CanGc values between threads/tasks (#33902) 2024-10-18 17:26:54 +00:00
stylesheet_loader.rs script: Expose node helpers as NodeTraits and give more descriptive names (#34832) 2025-01-03 18:55:01 +00:00
stylesheet_set.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
task.rs script: Unsilence all main thread TaskQueue errors (#34849) 2025-01-07 03:36:39 +00:00
task_manager.rs script: Unsilence all main thread TaskQueue errors (#34849) 2025-01-07 03:36:39 +00:00
task_queue.rs clippy: Fix suggestions in script, libservo, and servoshell (#33453) 2024-09-14 08:41:13 +00:00
task_source.rs script: Unsilence all main thread TaskQueue errors (#34849) 2025-01-07 03:36:39 +00:00
test.rs
textinput.rs build: upgrade rustc to 1.81.0 (#34270) 2024-12-12 07:26:16 +00:00
timers.rs script: Unsilence all main thread TaskQueue errors (#34849) 2025-01-07 03:36:39 +00:00
unminify.rs Unminify module scripts. (#34206) 2024-11-12 13:06:55 +00:00
unpremultiplytable.rs
webdriver_handlers.rs script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843) 2025-01-07 09:56:02 +00:00
window_named_properties.rs