Update IntersectionObserverEntry by adding |isIntersecting| and making |rootBounds| nullable. Make the same changes to IntersectionObserverEntryInit, and also add intersectionRatio.
Created attachment 346847 [details] Patch
Comment on attachment 346847 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=346847&action=review > Source/WebCore/page/IntersectionObserverEntry.h:51 > + std::optional<DOMRectInit> rootBounds; > DOMRectInit boundingClientRect; > DOMRectInit intersectionRect; > + bool isIntersecting; > + double intersectionRatio; > RefPtr<Element> target; This would pack better if you put the bool at the end > Source/WebCore/page/IntersectionObserverEntry.h:77 > + bool m_isIntersecting { false }; > double m_intersectionRatio { 0 }; > RefPtr<Element> m_target; Ditto
Created attachment 346851 [details] Patch for landing
Comment on attachment 346851 [details] Patch for landing Clearing flags on attachment: 346851 Committed r234732: <https://trac.webkit.org/changeset/234732>
All reviewed patches have been landed. Closing bug.
<rdar://problem/43106234>