31
edits
Tschneider (talk | contribs) (Add missing header) |
Tschneider (talk | contribs) (Update) |
||
| Line 28: | Line 28: | ||
<big><big>'''Lifetime (as in FF >= 58)'''</big></big> | <big><big>'''Lifetime (as in FF >= 58)'''</big></big> | ||
<big>'''Linking steps:'''</big> | |||
''DOMIntersectionObserver::observe(Element& aTarget)'' adds ''aTarget'' to ''DOMIntersectionObserver::mObservationTargets'' and calls ''Element::RegisterIntersectionObsever'' on ''aTarget''. If ''aTarget'' is the first item in ''DOMIntersectionObserver::mObservationTargets'', ''nsDocument::AddIntersectionObserver'' is called and the observer gets added to ''nsDocument::mIntersectionObservers''. | ''DOMIntersectionObserver::observe(Element& aTarget)'' adds ''aTarget'' to ''DOMIntersectionObserver::mObservationTargets'' and calls ''Element::RegisterIntersectionObsever'' on ''aTarget''. If ''aTarget'' is the first item in ''DOMIntersectionObserver::mObservationTargets'', ''nsDocument::AddIntersectionObserver'' is called and the observer gets added to ''nsDocument::mIntersectionObservers''. | ||
| Line 34: | Line 36: | ||
<big>'''Unlinking steps:'''</big> | <big>'''Unlinking 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''. | ||
edits