mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Move "needs layout update" flag from DOM to layout tree
This is in preparation for allowing anonymous boxes to retain their intrinsic size cache across layouts.
This commit is contained in:
committed by
Andreas Kling
parent
a122685896
commit
3c15fec303
Notes:
github-actions[bot]
2025-04-20 22:32:22 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/3c15fec3039 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4411
@@ -968,8 +968,8 @@ void KeyframeEffect::update_computed_properties()
|
||||
}
|
||||
}
|
||||
|
||||
if (invalidation.relayout)
|
||||
target->set_needs_layout_update(DOM::SetNeedsLayoutReason::KeyframeEffect);
|
||||
if (invalidation.relayout && target->layout_node())
|
||||
target->layout_node()->set_needs_layout_update(DOM::SetNeedsLayoutReason::KeyframeEffect);
|
||||
if (invalidation.rebuild_layout_tree) {
|
||||
// We mark layout tree for rebuild starting from parent element to correctly invalidate
|
||||
// "display" property change to/from "contents" value.
|
||||
|
||||
Reference in New Issue
Block a user