mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Make sure to cache inline_content_sizes()
(#34586)
The refactoring in 264c0f972f
stopped
caching the `inline_content_sizes()` calls from:
- `FlexItemBox::layout_for_block_content_size()`
- `IndependentFormattingContext::layout_float_or_atomic_inline()`
- `TaffyContainerContext::compute_child_layout()`
Also, the call from `OutsideMarker::layout()` was never cached.
This patch caches all of them.
It's not clear at all which `inline_content_sizes()` are cached and
which aren't, so I plan to improve the situation in a follow-up.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
7b160700d0
commit
41e3c321e5
4 changed files with 16 additions and 11 deletions
|
@ -713,7 +713,7 @@ where
|
|||
);
|
||||
ArcRefCell::new(BlockLevelBox::OutsideMarker(OutsideMarker {
|
||||
marker_style,
|
||||
list_item_style: info.style.clone(),
|
||||
base: LayoutBoxBase::new(info.into(), info.style.clone()),
|
||||
block_container,
|
||||
}))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue