Fix assertion failure during out-of-order matching
The assertion failure occurs in the following sequence: - Out-of-order matching to n-th item; - Synchronized matching to (n+m)-th item; - Out-of-order matching to (n-k)-th item; - Out-of-order matching to (n+m+l)-th. The problem is that we only update nextItemToIndex during out-of-order matching, but not during synchronized matching, causing we tried to index already copied items (n to n+m). BUG=526590 TEST=DisplayItemListTest.OutOfOrderNoCrash Review URL: https://codereview.chromium.org/1307653007 git-svn-id: svn://svn.chromium.org/blink/trunk@201684 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment