diff --git a/Userland/Libraries/LibWeb/Page/EditEventHandler.cpp b/Userland/Libraries/LibWeb/Page/EditEventHandler.cpp index 5b3dccdcfb2..542efbe2311 100644 --- a/Userland/Libraries/LibWeb/Page/EditEventHandler.cpp +++ b/Userland/Libraries/LibWeb/Page/EditEventHandler.cpp @@ -33,11 +33,6 @@ void EditEventHandler::handle_delete_character_after(JS::NonnullGCPtractive_document()->force_layout(); - m_browsing_context->did_edit({}); } @@ -94,11 +89,6 @@ void EditEventHandler::handle_delete(DOM::Range& range) end->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. - m_browsing_context->active_document()->force_layout(); - m_browsing_context->did_edit({}); } @@ -131,11 +121,6 @@ void EditEventHandler::handle_insert(JS::NonnullGCPtr position, u position->set_offset(1); } - // 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. - m_browsing_context->active_document()->force_layout(); - m_browsing_context->did_edit({}); } }