Restrict DOM mutations inside layout and compositing updates.

We should not allow DOM mutations inside either of these phases.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171116 bbb929c8-8fbe-4397-9dbb-9b2b20218538