servo/components/layout/flow/inline
Oriol Brufau c7c33f5f47
layout: Make IndependentFormattingContext::contents private (again) (#38350)
This was done in #24871, but after some refactorings it became public.
This makes it private again. As said in
b2b3ea992c:

> Privacy forces the rest of the code to go through methods
> rather than matching on the enum,
> reducing accidental layout-mode-specific behavior.

It also avoids the risk of accidentally calling `layout()` on the inner
layout-mode-specific struct, bypassing caching.

Testing: Not needed (no behavior change)

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-07-30 12:55:32 +00:00
..
construct.rs layout: Add incremental box tree construction for inline boxes (#38084) 2025-07-25 11:49:46 +00:00
inline_box.rs layout: Add incremental box tree construction for inline boxes (#38084) 2025-07-25 11:49:46 +00:00
line.rs layout: Remove clearance parameter from BoxFragment::new() (#37921) 2025-07-08 10:04:37 +00:00
line_breaker.rs layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
mod.rs layout: Make IndependentFormattingContext::contents private (again) (#38350) 2025-07-30 12:55:32 +00:00
text_run.rs layout: Share styles to inline box children via SharedInlineStyles (#36896) 2025-05-12 09:38:50 +00:00