mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 09:50:27 +00:00
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. |
||
|---|---|---|
| .. | ||
| IntersectionObserver.cpp | ||
| IntersectionObserver.h | ||
| IntersectionObserver.idl | ||
| IntersectionObserverEntry.cpp | ||
| IntersectionObserverEntry.h | ||
| IntersectionObserverEntry.idl | ||