mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 05:38:24 +00:00
LibWeb: Make Document::m_intersection_observers a weak mapping
These registrations are not meant to keep the observers alive. This fixes a handful of world leaks on Speedometer.
This commit is contained in:
parent
6a6618f5ea
commit
b397a0d535
Notes:
github-actions[bot]
2024-11-11 20:41:59 +00:00
Author: https://github.com/awesomekling
Commit: b397a0d535
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2287
Reviewed-by: https://github.com/ADKaster
2 changed files with 10 additions and 4 deletions
|
@ -939,8 +939,8 @@ private:
|
|||
|
||||
JS::GCPtr<CSS::VisualViewport> m_visual_viewport;
|
||||
|
||||
// NOTE: Not in the spec per say, but Document must be able to access all IntersectionObservers whose root is in the document.
|
||||
OrderedHashTable<JS::NonnullGCPtr<IntersectionObserver::IntersectionObserver>> m_intersection_observers;
|
||||
// NOTE: Not in the spec per se, but Document must be able to access all IntersectionObservers whose root is in the document.
|
||||
IGNORE_GC OrderedHashTable<JS::NonnullGCPtr<IntersectionObserver::IntersectionObserver>> m_intersection_observers;
|
||||
|
||||
// https://www.w3.org/TR/intersection-observer/#document-intersectionobservertaskqueued
|
||||
// Each document has an IntersectionObserverTaskQueued flag which is initialized to false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue