cc: Add support for continuing an iteration after erasing from a QuadList.
commit047aa237f24ae3484c98cd520560898320cfbb08
authorandresantoso <andresantoso@chromium.org>
Thu, 3 Sep 2015 22:19:41 +0000 (3 15:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 3 Sep 2015 22:20:33 +0000 (3 22:20 +0000)
tree449026fc8bead9567603b0109b44f3d24c168671
parentf6ecededccd50d0998491f43c2d1c56e2d15579e
cc: Add support for continuing an iteration after erasing from a QuadList.

EraseAndInvalidateAllPointers() now return a valid Iterator that can be used to
continue the iteration.

ListContainerBase::end() is modified so that it stays valid after insertion or
deletion.

This is needed for https://codereview.chromium.org/1304053016.

BUG=527222
TEST=ListContainerTest.DeletionWhileIterating
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#347265}
cc/base/list_container.cc
cc/base/list_container.h
cc/base/list_container_unittest.cc
cc/trees/layer_tree_host_impl.cc