ladybird/Libraries/LibWeb/IntersectionObserver
Andreas Kling 8caca053a3 LibWeb: Avoid IntersectionObserver registration lookups
IntersectionObserver updates already iterate over each observer and its
observation targets. We then looked the same target and observer pair up
again through Element's registered observer list just to read and write
previousThresholdIndex and previousIsIntersecting.

Store that mutable state with the observer-side observation target
instead. The element-side list now only keeps strong observer
references for lifetime management and unobserve/disconnect.

This deviates from the spec's storage model, so document the difference
next to the preserved spec comments.
2026-04-17 08:02:30 +02:00
..
IntersectionObserver.cpp LibWeb: Avoid IntersectionObserver registration lookups 2026-04-17 08:02:30 +02:00
IntersectionObserver.h LibWeb: Avoid IntersectionObserver registration lookups 2026-04-17 08:02:30 +02:00
IntersectionObserver.idl LibWeb: Convert trivial attributes to FrozenArray 2025-04-25 16:43:43 +02:00
IntersectionObserverEntry.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
IntersectionObserverEntry.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
IntersectionObserverEntry.idl Meta: Ensure that idl files link to draft specs 2026-03-25 16:02:04 +00:00