mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 20:42:11 +02: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:
committed by
Andreas Kling
parent
6a6618f5ea
commit
b397a0d535
Notes:
github-actions[bot]
2024-11-11 20:41:59 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/b397a0d5350 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2287 Reviewed-by: https://github.com/ADKaster
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user