servo/components/layout_2020/flow
Martin Robinson 556bfb7dff
fonts: Make FontContext thread-safe and share it per-Layout (#32205)
This allows sharing font templates, fonts, and platform fonts across
layout threads. It's the first step toward storing web fonts in the
layout versus the shared `FontCacheThread`. Now fonts and font groups
have some locking (especially on FreeType), which will probably affect
performance. On the other hand, we measured memory usage and this saves
roughly 40 megabytes of memory when loading servo.org based on data from
the memory profiler.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2024-05-02 10:34:10 +00:00
..
construct.rs layout: Ensure empty list items are at least as tall as outside markers (#32152) 2024-04-29 16:58:14 +00:00
float.rs Implement special table sizing for floats (#32150) 2024-04-26 14:42:20 +00:00
inline.rs fonts: Make FontContext thread-safe and share it per-Layout (#32205) 2024-05-02 10:34:10 +00:00
line.rs Turn white-space into a shorthand (#32146) 2024-04-29 10:40:44 +00:00
mod.rs layout: Ensure empty list items are at least as tall as outside markers (#32152) 2024-04-29 16:58:14 +00:00
root.rs layout: Add support for <object> with image data URLs (#32069) 2024-04-15 20:20:55 +00:00
text_run.rs fonts: Make FontContext thread-safe and share it per-Layout (#32205) 2024-05-02 10:34:10 +00:00