mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
LibWeb: Allocate list of registered intersection observers on demand
This shrinks most DOM elements by 16 bytes.
This commit is contained in:
parent
bdac94870c
commit
ac8bb89f50
2 changed files with 12 additions and 6 deletions
|
@ -429,7 +429,7 @@ private:
|
|||
|
||||
// https://www.w3.org/TR/intersection-observer/#dom-element-registeredintersectionobservers-slot
|
||||
// Element objects have an internal [[RegisteredIntersectionObservers]] slot, which is initialized to an empty list.
|
||||
Vector<IntersectionObserver::IntersectionObserverRegistration> m_registered_intersection_observers;
|
||||
OwnPtr<Vector<IntersectionObserver::IntersectionObserverRegistration>> m_registered_intersection_observers;
|
||||
|
||||
Array<CSSPixelPoint, 3> m_scroll_offset;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue