mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02: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:
committed by
Andreas Kling
parent
73a4b176cf
commit
a4463c45b9
Notes:
github-actions[bot]
2025-03-08 13:53:25 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/a4463c45b9c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3857
@@ -962,7 +962,7 @@ void KeyframeEffect::update_computed_properties()
|
||||
}
|
||||
|
||||
if (invalidation.relayout)
|
||||
document.set_needs_layout(DOM::SetNeedsLayoutReason::KeyframeEffect);
|
||||
target->set_needs_layout_update(DOM::SetNeedsLayoutReason::KeyframeEffect);
|
||||
if (invalidation.rebuild_layout_tree)
|
||||
document.invalidate_layout_tree(DOM::InvalidateLayoutTreeReason::KeyframeEffect);
|
||||
if (invalidation.repaint) {
|
||||
|
||||
Reference in New Issue
Block a user