mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb: Bring back cache of intrinsic sizes across layout runs
12c6ac78e2
with fixed mistake when cache
slot is copied instead of being referenced:
```cpp
auto cache =
box.cached_intrinsic_sizes().min_content_height.ensure(width);
```
while it should've been:
```cpp
auto& cache =
box.cached_intrinsic_sizes().min_content_height.ensure(width);
```
This commit is contained in:
parent
73a4b176cf
commit
a4463c45b9
Notes:
github-actions[bot]
2025-03-08 13:53:25 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: a4463c45b9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3857
13 changed files with 108 additions and 102 deletions
|
@ -147,7 +147,7 @@ WebIDL::ExceptionOr<void> CharacterData::replace_data(size_t offset, size_t coun
|
|||
static_cast<Layout::TextNode&>(*layout_node).invalidate_text_for_rendering();
|
||||
|
||||
// We also need to relayout.
|
||||
document().set_needs_layout(SetNeedsLayoutReason::CharacterDataReplaceData);
|
||||
set_needs_layout_update(SetNeedsLayoutReason::CharacterDataReplaceData);
|
||||
}
|
||||
|
||||
document().bump_character_data_version();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue