Skip to content

Commit

Permalink
fix(devtools): fix DOM tree flickering for animation page
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyunong authored and zealotchen0 committed Nov 5, 2024
1 parent de267d1 commit 2a8e5e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dom/src/dom/root_node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ void RootNode::UpdateAnimation(std::vector<std::shared_ptr<DomNode>>&& nodes) {
auto event = std::make_shared<DomEvent>(kDomUpdated, node, nullptr);
node->HandleEvent(event);
}
auto event = std::make_shared<DomEvent>(kDomTreeUpdated, weak_from_this(), nullptr);
HandleEvent(event);
// TODO: update properties instead of dom tree in debug front end
// auto event = std::make_shared<DomEvent>(kDomTreeUpdated, weak_from_this(), nullptr);
// HandleEvent(event);
if (!nodes_to_update.empty()) {
dom_operations_.push_back({DomOperation::Op::kOpUpdate, nodes_to_update});
}
Expand Down

0 comments on commit 2a8e5e0

Please sign in to comment.