зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
3e0581faaa
Коммит
861e4c283a
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче