зеркало из https://github.com/mozilla/gecko-dev.git
Fix to landing of bug 195350. Shuffle the right memory.
r/sr=tor
This commit is contained in:
Родитель
a1a208983a
Коммит
586ea7aa13
|
@ -110,7 +110,7 @@ nsAttrAndChildArray::InsertChildAt(nsIContent* aChild, PRUint32 aPos)
|
|||
void** oldStart = mImpl->mBuffer + offset;
|
||||
memmove(newStart, oldStart, aPos * sizeof(nsIContent*));
|
||||
newStart[aPos] = aChild;
|
||||
memmove(newStart[aPos + 1], oldStart[aPos],
|
||||
memmove(&newStart[aPos + 1], &oldStart[aPos],
|
||||
(childCount - aPos) * sizeof(nsIContent*));
|
||||
NS_ADDREF(aChild);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче