[IntersectionObserver] Regression: No initial observation when nothing else triggers...
authorajuma@chromium.org <ajuma@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 May 2019 13:54:56 +0000 (13:54 +0000)
committerajuma@chromium.org <ajuma@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 May 2019 13:54:56 +0000 (13:54 +0000)
commitedad43969d6183909a9b35c3f4e6afb4113fdce4
tree76ae152b06d062e59820cad0d9c2c3a7a34b85ed
parentd8b0afaf55f145162cec698cf1c725d03df8d5ac
[IntersectionObserver] Regression: No initial observation when nothing else triggers rendering
https://bugs.webkit.org/show_bug.cgi?id=197891

Reviewed by Simon Fraser.

Source/WebCore:

Schedule a rendering update whenever a new IntersectionObserver target is added.

Test: intersection-observer/initial-observation.html

* page/IntersectionObserver.cpp:
(WebCore::IntersectionObserver::observe):

LayoutTests:

Add a test where other timers that can schedule rendering updates are disabled,
in order to verify that IntersectionObserver is scheduling rendering updates
itself.

* intersection-observer/initial-observation.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/intersection-observer/initial-observation-expected.txt [new file with mode: 0644]
LayoutTests/intersection-observer/initial-observation.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/IntersectionObserver.cpp