Description[cc] Fix crash when adding a child layer to its own parent.
Only calculate the index after calling removeFromParent in case
it modifies the number of children.
BUG=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167315
Patch Set 1 #Patch Set 2 : Added unittest. #
Total comments: 2
Patch Set 3 : Review comments #
Total comments: 6
Patch Set 4 : Use unsigned ints. #
Total comments: 3
Patch Set 5 : Address review comments #Messages
Total messages: 15 (0 generated)
|