Fix very long-standing bug with incorrect insertion indices reported by the HTML content sink. Bug 404553, r+sr=peterv, a=schrep

This commit is contained in:
bzbarsky@mit.edu 2007-11-21 12:57:49 -08:00
Родитель 5598378f56
Коммит 8da3f16fa9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1391,7 +1391,7 @@ SinkContext::FlushTags()
nsIContent* child = mStack[stackPos + 1].mContent;
mSink->NotifyInsert(content,
child,
mStack[stackPos].mInsertionPoint);
mStack[stackPos].mInsertionPoint - 1);
} else {
mSink->NotifyAppend(content, mStack[stackPos].mNumFlushed);
}