Add isIntersecting property to IntersectionObserverEntry.

Per updated spec.

This resolves the issue raised in #249.
This commit is contained in:
wolfbeast 2019-01-17 19:02:50 +01:00 committed by Roy Tam
commit 9222116f26
3 changed files with 11 additions and 0 deletions

View file

@ -482,6 +482,7 @@ DOMIntersectionObserver::QueueIntersectionObserverEntry(Element* aTarget,
rootBounds.forget(),
boundingClientRect.forget(),
intersectionRect.forget(),
aIntersectionRect.isSome(),
aTarget, aIntersectionRatio);
mQueuedEntries.AppendElement(entry.forget());
}