servo/ports/servoshell/desktop
Martin Robinson 0e616e0c5d
api: Flatten and simplify Servo preferences (#34966)
Flatten and simplify Servo's preferences code. In addition, have both
preferences and options passed in as arguments to `Servo::new()` and
make sure not to use the globally set preferences in `servoshell` (as
much as possible now).

Instead of a complex procedural macro to generate preferences, just
expose a very simple derive macro that adds string based getters and
setters.

- All command-line parsing is moved to servoshell.
- There is no longer the concept of a missing preference.
- Preferences no longer have to be part of the resources bundle because
  they now have reasonable default values.
- servoshell specific preferences are no longer part of the preferences
  exposed by the Servo API.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-01-14 13:54:06 +00:00
..
protocols Create HttpStatus to safely deal with HTTP responses status. (#33581) 2024-09-29 18:23:48 +00:00
app.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
cli.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
egui_glue.rs chore: remove WindowMethods::rendering_context (#34780) 2025-01-01 08:26:23 +00:00
embedder.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
events_loop.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
geometry.rs Use webrender_api::units::DevicePixel rather than style_traits::DevicePixel unless interfacing with Stylo (#34353) 2024-11-25 23:42:04 +00:00
headed_window.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
headless_window.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
keyutils.rs servoshell: Clean up keyboard event conversion a little (#32564) 2024-06-19 19:38:56 +00:00
minibrowser.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
mod.rs make protocol handlers registrable (#33104) 2024-08-22 04:11:16 +00:00
tracing.rs Add embedder event for preferred color scheme and respond to it in the LayoutThread (#34532) 2024-12-12 06:17:02 +00:00
webview.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
window_trait.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00