[DL] Don't do full layout invalidation when committing a lock.

This patch mimics the style code in that it tries not to propagate the
invalidation up the container chain if the element is locked for display

When the lock commits and the element needs layout, then it marks
the ancestor chain so that the code can reach it in layout.

R=chrishtr@chromium.org, mstensho@chromium.org

Bug: 882663
Change-Id: I499e91e6a14f61e5dfbeae74d3c93ac8b321e944
Reviewed-on: https://chromium-review.googlesource.com/c/1344825
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611792}
4 files changed