servo/components/script/dom/servoparser
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
..
async_html.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
html.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
mod.rs script: Expose NodeTraits::owner_global / Window::as_global_scope (#34843) 2025-01-07 09:56:02 +00:00
prefetch.rs Remove referrer policy from document (#34263) 2024-11-19 12:45:10 +00:00
xml.rs Support HTML parser reentrancy (#32820) 2024-08-16 16:25:50 +00:00