commit | 2c168f38b5c0e4e50374be4e54c44901c60738a9 | [log] [tgz] |
---|---|---|
author | szager <szager@chromium.org> | Thu Mar 10 01:04:36 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu Mar 10 01:06:17 2016 |
tree | 139cfcac8392dcf99c09179891a8d7e5b2c59245 | |
parent | 99eba4b356c29e7a6202436776f4da4ceca30d32 [diff] |
IntersectionObserver: use an idle callback to send notifications. With this change, the tests can no longer use setTimeout(0) to wait for notifications to be delivered. Instead, use takeRecords() to proactively grab notifications right after they are generated (typically in a RAF right after a layout change). BUG=540528 R=ojan@chromium.org,haraken@chromium.org Review URL: https://codereview.chromium.org/1776493002 Cr-Commit-Position: refs/heads/master@{#380278}