ladybird/Libraries/LibWeb/ResizeObserver
Aliaksandr Kalenik 4cbf47dcd2 LibWeb: Unregister ResizeObserver from Document when it has no targets
According to the spec, `ResizeObserver` needs to live for as long as
it's referenced from script or has observation targets. With this change
we make sure that `ResizeObserver` is unregistered from the `Document`
when it has no target.

Fixes GC leak that caused us to keep all resize observers alive until
document they belong to is destroyed.
2025-07-30 00:54:57 +02:00
..
ResizeObservation.cpp LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ResizeObservation.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ResizeObserver.cpp LibWeb: Unregister ResizeObserver from Document when it has no targets 2025-07-30 00:54:57 +02:00
ResizeObserver.h LibWeb: Unregister ResizeObserver from Document when it has no targets 2025-07-30 00:54:57 +02:00
ResizeObserver.idl
ResizeObserverEntry.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
ResizeObserverEntry.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ResizeObserverEntry.idl LibWeb: Convert trivial attributes to FrozenArray 2025-04-25 16:43:43 +02:00
ResizeObserverSize.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
ResizeObserverSize.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ResizeObserverSize.idl