servo/components/constellation
Delan Azabani 5e9de2cb61
Include WebViewId into EmbedderMsg variants where possible (#35211)
`EmbedderMsg` was previously paired with an implicit
`Option<WebViewId>`, even though almost all variants were either always
`Some` or always `None`, depending on whether there was a `WebView
involved.

This patch adds the `WebViewId` to as many `EmbedderMsg` variants as
possible, so we can call their associated `WebView` delegate methods
without needing to check and unwrap the `Option`. In many cases, this
required more changes to plumb through the `WebViewId`.

Notably, all `Request`s now explicitly need a `WebView` or not, in order
to ensure that it is passed when appropriate.

Signed-off-by: Delan Azabani <dazabani@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2025-01-30 11:15:35 +00:00
..
browsingcontext.rs Trace more functions by adding perfetto tracing events (#33417) 2024-09-13 05:51:19 +00:00
Cargo.toml Add webgpu feature flag (#34444) 2024-12-05 16:07:27 +00:00
constellation.rs Include WebViewId into EmbedderMsg variants where possible (#35211) 2025-01-30 11:15:35 +00:00
event_loop.rs clippy: Fix warnings in components/constellation (#31610) 2024-03-11 10:22:28 +00:00
lib.rs script: Move navigation fetching to the ScriptThread (#34919) 2025-01-10 12:19:40 +00:00
logging.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
pipeline.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
sandboxing.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
serviceworker.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
session_history.rs Upgrade Rust to 1.82.0 (#34592) 2024-12-12 12:00:51 +00:00
tracing.rs Include WebViewId into EmbedderMsg variants where possible (#35211) 2025-01-30 11:15:35 +00:00
webview.rs Move non-gfx things out of gfx_traits and create a base crate (#32296) 2024-05-17 12:28:58 +00:00