Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/README

Issue 1780163002: Revert of IntersectionObserver: use an idle callback to send notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/intersection-observer/README
diff --git a/third_party/WebKit/LayoutTests/intersection-observer/README b/third_party/WebKit/LayoutTests/intersection-observer/README
deleted file mode 100644
index 4dad2f33a5d118bbd938e1d2d83abc96273a1fe8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/intersection-observer/README
+++ /dev/null
@@ -1,29 +0,0 @@
-All of the IntersectionObserver tests feature the following idiom:
-
-<script>
-var observer = new IntersectionObserver(...)
-function test_function() {
- var entries = observer.takeRecords();
- // Verify entries
-}
-onload = function() {
- observer.observe(target);
- requestAnimationFrame(() => { requestAnimationFrame(test_function) });
-}
-
-
-Subsequent steps in the test use a single RAF to give the observer a chance to
-generate notifications, but the double RAF is required in the onload handler.
-Here's the chain of events:
-
-- onload
- - observer.observe()
- - First RAF handler is registered
-- BeginFrame
- - RAF handlers run
- - Second RAF handler is registered
- - UpdateAllLifecyclePhases
- - IntersectionObserver generates notifications
-- BeginFrame
- - RAF handlers run
- - Second RAF handler verifies observer notifications.

Powered by Google App Engine
This is Rietveld 408576698