Comment 35 for bug 256624

Revision history for this message
In , Bzbarsky (bzbarsky) wrote :

Hmm. What happens if we have inserted multiple kids at mInsertionPoint? Or are we guaranteed to have notified on all but one of them?

Also, when would the child on the stack not be the one at the insertion point?

Here's what I worry about. The following sequence of events:

1) Append two kids. Notify on them.
2) Insert a kid at position 1 (between the two). Don't notify.
3) Append another kid

Can this happen? Or are we guaranteed to notify on the inserted kids if mInsertionPoint becomes -1 again?

I really wish someone who knows this insertion point stuff better would chime in here... ;)