When switching from the overflow lines to normal lines we must reset 'mInOverflowLines' or we'll compare 'mLine' to the wrong list on the next call. b=457375 r+sr=roc

This commit is contained in:
Mats Palmgren 2008-10-12 02:19:41 +02:00
Родитель 3e0581faaa
Коммит 861e4c283a
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -5188,6 +5188,7 @@ nsBlockInFlowLineIterator::Prev()
PRBool currentlyInOverflowLines = mInOverflowLines != nsnull; PRBool currentlyInOverflowLines = mInOverflowLines != nsnull;
while (PR_TRUE) { while (PR_TRUE) {
if (currentlyInOverflowLines) { if (currentlyInOverflowLines) {
mInOverflowLines = nsnull;
mLine = mFrame->end_lines(); mLine = mFrame->end_lines();
if (mLine != mFrame->begin_lines()) { if (mLine != mFrame->begin_lines()) {
--mLine; --mLine;