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
parent 7e6f8996ee
commit fff5ab679b

View File

@ -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);
}