Files
serenity/Userland/Libraries/LibWeb/DOM/Node.cpp
Andreas Kling da526bac92 LibWeb: Don't invalidate layout tree on all DOM node removals
DOM nodes that didn't have a layout node before being removed from the
DOM are not going to change the shape of the layout tree after being
removed.

Observing this, we can avoid a full layout tree rebuild on some DOM node
removals.

This avoids a bunch of tree building work when loading https://x.com/

(cherry picked from commit 6f34758947852abae773798ba3ffa8e903fdc3d0)
2024-11-04 13:17:01 -05:00

100 KiB