v8binding: Fixes wrapper-tracing at ResizeObserver.

The current implementation is running ResizeObserver's callback
functions even when they're NOT wrapper-traced.  This patch makes
it sure that the observed Element is performing wrapper-tracing
otherwise ResizeObserver does not invoke an untraced callback
function.

The attached test case causes crash with the current
implementation, but not with this patch.

Bug: 809784
Change-Id: If2e66d388ab4f4410ca8c472176fbdee5a957f08
Reviewed-on: https://chromium-review.googlesource.com/924104
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#537714}(cherry picked from commit b1a610768d7351f4662c8a0b8916f4dc0db19267)
Reviewed-on: https://chromium-review.googlesource.com/932141
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/branch-heads/3325@{#551}
Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
3 files changed