Index: third_party/WebKit/LayoutTests/intersection-observer/iframe-root.html |
diff --git a/third_party/WebKit/LayoutTests/intersection-observer/iframe-root.html b/third_party/WebKit/LayoutTests/intersection-observer/iframe-root.html |
index de889a579138f68b06f8320d65c54898a74841e7..46e3d0c901a1aa48c320444ee563931bedf1a1b5 100644 |
--- a/third_party/WebKit/LayoutTests/intersection-observer/iframe-root.html |
+++ b/third_party/WebKit/LayoutTests/intersection-observer/iframe-root.html |
@@ -25,9 +25,6 @@ targetIframe.onload = function() { |
var observer = new IntersectionObserver(observer_callback, {"root": document.getElementById("root")}); |
observer.observe(target); |
- // TODO(szager): It shouldn't be necessary to RAF after the call to observer() |
- // and before changing the scroll position, but it is. |
- |
function step0() { |
setTimeout(function() { |
shouldBeEqualToNumber("entries.length", 0); |
@@ -102,6 +99,6 @@ targetIframe.onload = function() { |
}); |
} |
- requestAnimationFrame(step0); |
+ step0(); |
} |
</script> |