From 07a533f7f0bffaa30c7a4cf3c7f082b0cb94cd58 Mon Sep 17 00:00:00 2001 From: wwwcg Date: Thu, 25 Apr 2024 17:56:52 +0800 Subject: [PATCH] fix(dom): missing render_info update before move operation --- dom/src/dom/layer_optimized_render_manager.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/src/dom/layer_optimized_render_manager.cc b/dom/src/dom/layer_optimized_render_manager.cc index 646b8befcef..6362c94d9c1 100644 --- a/dom/src/dom/layer_optimized_render_manager.cc +++ b/dom/src/dom/layer_optimized_render_manager.cc @@ -78,6 +78,7 @@ void LayerOptimizedRenderManager::UpdateRenderNode(std::weak_ptr root_ std::vector moved_ids; moved_ids.reserve(moved_children.size()); for (const auto& moved_node : moved_children) { + UpdateRenderInfo(moved_node); moved_ids.push_back(footstone::check::checked_numeric_cast(moved_node->GetId())); } MoveRenderNode(root_node, std::move(moved_ids),