mirror of
https://github.com/servo/servo.git
synced 2025-07-25 00:00:20 +01:00
In order to support size keywords in block layout, we may need to call `inline_content_sizes()` in order to compute the min/max-content sizes. But this required a mutable reference in order the update the cache, and in various places we already had mutable references. So this switches the cache into a RwLock to avoid needing mutable refs. Note OnceCell wouldn't work because it's not thread-safe. Signed-off-by: Oriol Brufau <obrufau@igalia.com> |
||
---|---|---|
.. | ||
inline | ||
construct.rs | ||
float.rs | ||
mod.rs | ||
root.rs |