servo/components/canvas
Martin Robinson ac567645a7
fonts: Simplify FontContext in two ways that affect the unit test (#33541)
This is done by no longer forwarding compositor-bound messages through
SystemFontService and making `FontContext` non-generic:

- Messages from the `FontContext` to the `Compositor` no longer need to be
  forwarded through the `SystemFontService`. Instead send these messages
  directly through the script IPC channel to the `Compositor`.

- Instead of adding a mock `SystemFontServiceProxy`, simply implement a
  mock `SystemFontService` on the other side of an IPC channel in the
  `font_context` unit test. This allows making `FontContext`
  non-generic, greatly simplifying the code. The extra complexity moves
  into the unit test.

These changes necessitate adding a new kind of `FontIdentifier`,
`FontIdentifier::Mock` due to the fact that local fonts have
platform-specific identifiers. This avoids having to pretend like the
system font service can have web fonts -- which was always a bit of a
hack.

These two changes are combined into one PR because they both require
extensive and similar chages in the font_context unit test which
dependended on the details of both of them.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-09-25 20:15:47 +00:00
..
webgl_mode Move RenderingContext to webrender_traits (#32386) 2024-05-28 12:48:55 +00:00
canvas_data.rs fonts: Simplify FontContext in two ways that affect the unit test (#33541) 2024-09-25 20:15:47 +00:00
canvas_paint_thread.rs fonts: Simplify FontContext in two ways that affect the unit test (#33541) 2024-09-25 20:15:47 +00:00
Cargo.toml Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
lib.rs remove extern crate (#30311) 2023-09-08 12:11:31 +00:00
raqote_backend.rs fonts: Use IpcSharedMemory to send font data (#33530) 2024-09-25 07:31:55 +00:00
webgl_limits.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
webgl_thread.rs ohos: Enable Webgl context creation on OH 5.0 (#33257) 2024-09-02 07:00:11 +00:00