Update IDL for IntersectionObserverEntry and IntersectionObserverEntryInit
authorajuma@chromium.org <ajuma@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Aug 2018 19:36:38 +0000 (19:36 +0000)
committerajuma@chromium.org <ajuma@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Aug 2018 19:36:38 +0000 (19:36 +0000)
commitbf4aebab83dd17f2d50d8667c7976837d2673891
tree4856a9b6fb370c5d6089d12440ba022e61bdc2fa
parent8c3830605f11d5e0c5e8d57cd05d6f2ce6545607
Update IDL for IntersectionObserverEntry and IntersectionObserverEntryInit
https://bugs.webkit.org/show_bug.cgi?id=188445

Reviewed by Simon Fraser.

Source/WebCore:

Update IntersectionObserverEntry by making rootBounds nullable, and adding an
isIntersecting attribute. Make the same changes to IntersectionObserverEntryInit,
and also add an intersectionRatio attribute.

Tested by intersection-observer/intersection-observer-entry-interface.html

* page/IntersectionObserverEntry.cpp:
(WebCore::IntersectionObserverEntry::IntersectionObserverEntry):
* page/IntersectionObserverEntry.h:
(WebCore::IntersectionObserverEntry::isIntersecting const):
* page/IntersectionObserverEntry.idl:

LayoutTests:

* intersection-observer/intersection-observer-entry-interface-expected.txt:
* intersection-observer/intersection-observer-entry-interface.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234732 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/intersection-observer/intersection-observer-entry-interface-expected.txt
LayoutTests/intersection-observer/intersection-observer-entry-interface.html
Source/WebCore/ChangeLog
Source/WebCore/page/IntersectionObserverEntry.cpp
Source/WebCore/page/IntersectionObserverEntry.h
Source/WebCore/page/IntersectionObserverEntry.idl