Fix for bug #14414. Changed DoRemoveFrame() to invalidate the space taken

up by the line when deleting an empty line
This commit is contained in:
troy%netscape.com 1999-09-21 05:15:39 +00:00
Родитель 531f66367a
Коммит fef9b919ac
6 изменённых файлов: 30 добавлений и 0 удалений

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

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

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

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

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

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

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

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

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

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

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

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}