DescriptionAvoid re-iterate out-of-order display items
Previously for the following case:
current display items:
A B C D
new display items:
C B A D
A and B in current display items will be skipped and indexed when adding
C, then the index will be used when adding B and A.
When adding D, currentIt points to A, and B and C will be iterated
again.
Add nextItemToIndexIt variable to memorize the place to index, to avoid
repeated iteration.
BTW
- Change DisplayItem::ignoreInDisplayList() to (!)DisplayItem::isValid()
- Let currentIt point to the next item of the item just being copied so
that we can synchronize sooner in some cases.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200736
Patch Set 1 #Patch Set 2 : #
Total comments: 4
Patch Set 3 : Address pdr's comments #
Total comments: 7
Patch Set 4 : Address pdr's comments #Patch Set 5 : #
Dependent Patchsets: Messages
Total messages: 15 (6 generated)
|