servo/components/shared/base
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
..
Cargo.toml Remove size_of_test macro from legacy layout and inline it (#34055) 2024-10-29 14:46:10 +00:00
cross_process_instant.rs clippy: Fix suggestions in script, libservo, and servoshell (#33453) 2024-09-14 08:41:13 +00:00
generate-unicode-block.py base: Remove ucd dependency (#32424) 2024-06-03 17:10:01 +00:00
generic_channel.rs Move webgl_channel into base crate (#32339) 2024-05-24 06:13:20 +00:00
id.rs Include WebViewId into EmbedderMsg variants where possible (#35211) 2025-01-30 11:15:35 +00:00
lib.rs script: Create a CrossProcessInstant to enable serializable monotonic time (#33282) 2024-09-05 18:50:09 +00:00
print_tree.rs Move non-gfx things out of gfx_traits and create a base crate (#32296) 2024-05-17 12:28:58 +00:00
text.rs clippy: Fix collapsible_match warning in components/shared (#33664) 2024-10-07 07:52:38 +00:00
unicode_block.rs base: Remove ucd dependency (#32424) 2024-06-03 17:10:01 +00:00