IntersectionObserver: fix exceptions and handling of cross-origin root margin

BUG=540528

Review URL: https://codereview.chromium.org/1740923004

Cr-Commit-Position: refs/heads/master@{#378387}
11 files changed