mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Remove unnecessary Document::force_layout() API
The only remaining client of this API can simply not call it, and let normal DOM layout invalidation happen.
This commit is contained in:
@@ -743,11 +743,6 @@ void ConnectionFromClient::remove_dom_node(u64 page_id, i32 node_id)
|
||||
|
||||
dom_node->remove();
|
||||
|
||||
// FIXME: When nodes are removed from the DOM, the associated layout nodes become stale and still
|
||||
// remain in the layout tree. This has to be fixed, this just causes everything to be recomputed
|
||||
// which really hurts performance.
|
||||
active_document->force_layout();
|
||||
|
||||
async_did_finish_editing_dom_node(page_id, previous_dom_node->unique_id());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user