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
parent b6a2b7d1c6
commit c34734e572

View File

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