Add more slot-assignement-recalc-forbidden scoped check

This is a follow-up of https://crrev.com/c/1070169.

Added scoped checks in:
- InsertBefore
- ReplaceChild

The future plan: The remaining operation we should check is Element::attachShadow, which will be
done in another CL.

After that, I'll refactor so that this kind of check can be done in more better places.


Bug: 845770
Change-Id: I8463c38a6676fd8cee4d300423b74a88e764f12d
Reviewed-on: https://chromium-review.googlesource.com/1074786
Commit-Queue: Hayato Ito <hayato@chromium.org>
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#563206}
1 file changed