IntersectionObserver: notify when root or target is removed.

If root and target were previously intersecting, and then DOM is
modified to remove root or target, or to make target not a
containing block descendant of root, send a notification.

Merge to M51; original patch:

https://codereview.chromium.org/1889053002

BUG=540528
TBR=ojan@chromium.org
NOTRY=true
NOPRESUBMIT=true

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

Cr-Commit-Position: refs/branch-heads/2704@{#100}
Cr-Branched-From: 6e53600def8f60d8c632fadc70d7c1939ccea347-refs/heads/master@{#386251}
5 files changed