Files
ladybird/Libraries/LibWeb/HTML
Andreas Kling 5fd608b7cd LibWeb: Cache editability flag on DOM nodes for O(1) lookups
Add a cached m_in_editable_subtree flag to Node, updated on tree
mutations and contenteditable/designMode changes.

This replaces the recursive parent walk in is_editable() and
is_editing_host() with an O(1) flag check. The flag is recomputed
in inserted(), moved_from(), and cleared in removed_from(). Subtree
walks recompute the flag when contenteditable attributes change or
design mode is toggled.

This was 4% of CPU time while playing a YouTube video.
2026-02-21 03:51:28 +01:00
..
2026-02-17 10:48:09 -05:00
2025-08-23 16:04:36 -06:00
2026-01-20 06:51:04 -05:00
2026-01-11 00:01:24 +01:00
2026-01-11 00:01:24 +01:00
2024-11-25 21:13:53 +01:00
2026-02-18 08:02:45 -05:00
2026-02-18 08:02:45 -05:00
2026-02-11 16:32:20 +00:00
2026-02-11 16:32:20 +00:00
2025-08-08 10:23:17 +02:00