haikuwebkit/LayoutTests/intersection-observer/root-element-moved-expected...

4 lines
60 B
Plaintext
Raw Permalink Normal View History

[IntersectionObserver] Fire an initial dummy notification https://bugs.webkit.org/show_bug.cgi?id=188670 Reviewed by Simon Fraser. LayoutTests/imported/w3c: Rebaseline tests now that an initial notification is fired. * web-platform-tests/intersection-observer/bounding-box-expected.txt: * web-platform-tests/intersection-observer/client-rect-expected.txt: * web-platform-tests/intersection-observer/containing-block-expected.txt: * web-platform-tests/intersection-observer/cross-origin-iframe-expected.txt: * web-platform-tests/intersection-observer/disconnect-expected.txt: * web-platform-tests/intersection-observer/display-none-expected.txt: * web-platform-tests/intersection-observer/edge-inclusive-intersection-expected.txt: * web-platform-tests/intersection-observer/iframe-no-root-expected.txt: * web-platform-tests/intersection-observer/inline-client-rect-expected.txt: * web-platform-tests/intersection-observer/isIntersecting-change-events-expected.txt: * web-platform-tests/intersection-observer/multiple-targets-expected.txt: * web-platform-tests/intersection-observer/multiple-thresholds-expected.txt: * web-platform-tests/intersection-observer/observer-without-js-reference-expected.txt: * web-platform-tests/intersection-observer/remove-element-expected.txt: * web-platform-tests/intersection-observer/root-margin-expected.txt: * web-platform-tests/intersection-observer/same-document-no-root-expected.txt: * web-platform-tests/intersection-observer/same-document-root-expected.txt: * web-platform-tests/intersection-observer/same-document-zero-size-target-expected.txt: * web-platform-tests/intersection-observer/shadow-content-expected.txt: * web-platform-tests/intersection-observer/text-target-expected.txt: * web-platform-tests/intersection-observer/timestamp-expected.txt: * web-platform-tests/intersection-observer/unclipped-root-expected.txt: * web-platform-tests/intersection-observer/zero-area-element-hidden-expected.txt: * web-platform-tests/intersection-observer/zero-area-element-visible-expected.txt: Source/WebCore: Add logic to track ongoing intersection observations. Create an IntersectionObserverRegistration and fire a single dummy notification for each one. Test: intersection-observer/root-element-moved.html Also tested by existing tests in imported/w3c/web-platform-tests/intersection-observer. * dom/Document.cpp: (WebCore::Document::~Document): (WebCore::Document::addIntersectionObserver): (WebCore::Document::removeIntersectionObserver): (WebCore::Document::updateIntersectionObservations): (WebCore::Document::notifyIntersectionObserversTimerFired): * dom/Document.h: (WebCore::Document::numberOfIntersectionObservers const): * dom/Element.cpp: (WebCore::Element::didMoveToNewDocument): (WebCore::Element::disconnectFromIntersectionObservers): * page/IntersectionObserver.cpp: (WebCore::IntersectionObserver::create): (WebCore::IntersectionObserver::IntersectionObserver): (WebCore::IntersectionObserver::~IntersectionObserver): (WebCore::IntersectionObserver::observe): (WebCore::IntersectionObserver::unobserve): (WebCore::IntersectionObserver::disconnect): (WebCore::IntersectionObserver::takeRecords): (WebCore::IntersectionObserver::targetDestroyed): (WebCore::IntersectionObserver::removeTargetRegistration): (WebCore::IntersectionObserver::removeAllTargets): (WebCore::IntersectionObserver::rootDestroyed): (WebCore::IntersectionObserver::appendQueuedEntry): (WebCore::IntersectionObserver::notify): * page/IntersectionObserver.h: (WebCore::IntersectionObserver::trackingDocument): (WebCore::IntersectionObserver:: const): (WebCore::IntersectionObserver::hasObservationTargets const): * page/IntersectionObserver.idl: * testing/Internals.cpp: (WebCore::Internals::numberOfIntersectionObservers const): * testing/Internals.h: * testing/Internals.idl: LayoutTests: * intersection-observer/root-element-deleted.html: Add additional assertions. * intersection-observer/root-element-moved-expected.txt: Added. * intersection-observer/root-element-moved.html: Added. Canonical link: https://commits.webkit.org/203788@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-08-18 23:45:07 +00:00
PASS Document's active intersection observers get updated
[IntersectionObserver] Fire an initial dummy notification https://bugs.webkit.org/show_bug.cgi?id=188670 Reviewed by Simon Fraser. LayoutTests/imported/w3c: Rebaseline tests now that an initial notification is fired. * web-platform-tests/intersection-observer/bounding-box-expected.txt: * web-platform-tests/intersection-observer/client-rect-expected.txt: * web-platform-tests/intersection-observer/containing-block-expected.txt: * web-platform-tests/intersection-observer/cross-origin-iframe-expected.txt: * web-platform-tests/intersection-observer/disconnect-expected.txt: * web-platform-tests/intersection-observer/display-none-expected.txt: * web-platform-tests/intersection-observer/edge-inclusive-intersection-expected.txt: * web-platform-tests/intersection-observer/iframe-no-root-expected.txt: * web-platform-tests/intersection-observer/inline-client-rect-expected.txt: * web-platform-tests/intersection-observer/isIntersecting-change-events-expected.txt: * web-platform-tests/intersection-observer/multiple-targets-expected.txt: * web-platform-tests/intersection-observer/multiple-thresholds-expected.txt: * web-platform-tests/intersection-observer/observer-without-js-reference-expected.txt: * web-platform-tests/intersection-observer/remove-element-expected.txt: * web-platform-tests/intersection-observer/root-margin-expected.txt: * web-platform-tests/intersection-observer/same-document-no-root-expected.txt: * web-platform-tests/intersection-observer/same-document-root-expected.txt: * web-platform-tests/intersection-observer/same-document-zero-size-target-expected.txt: * web-platform-tests/intersection-observer/shadow-content-expected.txt: * web-platform-tests/intersection-observer/text-target-expected.txt: * web-platform-tests/intersection-observer/timestamp-expected.txt: * web-platform-tests/intersection-observer/unclipped-root-expected.txt: * web-platform-tests/intersection-observer/zero-area-element-hidden-expected.txt: * web-platform-tests/intersection-observer/zero-area-element-visible-expected.txt: Source/WebCore: Add logic to track ongoing intersection observations. Create an IntersectionObserverRegistration and fire a single dummy notification for each one. Test: intersection-observer/root-element-moved.html Also tested by existing tests in imported/w3c/web-platform-tests/intersection-observer. * dom/Document.cpp: (WebCore::Document::~Document): (WebCore::Document::addIntersectionObserver): (WebCore::Document::removeIntersectionObserver): (WebCore::Document::updateIntersectionObservations): (WebCore::Document::notifyIntersectionObserversTimerFired): * dom/Document.h: (WebCore::Document::numberOfIntersectionObservers const): * dom/Element.cpp: (WebCore::Element::didMoveToNewDocument): (WebCore::Element::disconnectFromIntersectionObservers): * page/IntersectionObserver.cpp: (WebCore::IntersectionObserver::create): (WebCore::IntersectionObserver::IntersectionObserver): (WebCore::IntersectionObserver::~IntersectionObserver): (WebCore::IntersectionObserver::observe): (WebCore::IntersectionObserver::unobserve): (WebCore::IntersectionObserver::disconnect): (WebCore::IntersectionObserver::takeRecords): (WebCore::IntersectionObserver::targetDestroyed): (WebCore::IntersectionObserver::removeTargetRegistration): (WebCore::IntersectionObserver::removeAllTargets): (WebCore::IntersectionObserver::rootDestroyed): (WebCore::IntersectionObserver::appendQueuedEntry): (WebCore::IntersectionObserver::notify): * page/IntersectionObserver.h: (WebCore::IntersectionObserver::trackingDocument): (WebCore::IntersectionObserver:: const): (WebCore::IntersectionObserver::hasObservationTargets const): * page/IntersectionObserver.idl: * testing/Internals.cpp: (WebCore::Internals::numberOfIntersectionObservers const): * testing/Internals.h: * testing/Internals.idl: LayoutTests: * intersection-observer/root-element-deleted.html: Add additional assertions. * intersection-observer/root-element-moved-expected.txt: Added. * intersection-observer/root-element-moved.html: Added. Canonical link: https://commits.webkit.org/203788@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-08-18 23:45:07 +00:00