mirror of
https://github.com/servo/servo.git
synced 2025-07-26 00:30:22 +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> |
||
---|---|---|
.. | ||
construct.rs | ||
geom.rs | ||
layout.rs | ||
mod.rs |