Layout:IntersectionObserver: Difference between revisions

Add missing header
(Update)
(Add missing header)
Line 34: Line 34:


<big>'''Unlinking steps:'''</big>
<big>'''Unlinking steps:'''</big>
<big>'''Linking steps:'''</big>


''DOMIntersectionObserver::unobserve(Element& aTarget)'' removes aTarget from ''DOMIntersectionObserver::mObservationTargets'' and calls ''Element::UnregisterIntersectionObsever'' on ''aTarget''. If aTarget is the last item in ''DOMIntersectionObserver::mObservationTargets'', ''nsDocument::RemoveIntersectionObserver'' is called and the observer gets removed from ''nsDocument::mIntersectionObservers''.
''DOMIntersectionObserver::unobserve(Element& aTarget)'' removes aTarget from ''DOMIntersectionObserver::mObservationTargets'' and calls ''Element::UnregisterIntersectionObsever'' on ''aTarget''. If aTarget is the last item in ''DOMIntersectionObserver::mObservationTargets'', ''nsDocument::RemoveIntersectionObserver'' is called and the observer gets removed from ''nsDocument::mIntersectionObservers''.
31

edits